Opened 15 years ago

Closed 15 years ago

#1195 closed Bugs (fixed)

patch: boost/format/parsing.hpp does not compile if BOOST_NO_LOCALE_ISDIGIT is defined

Reported by: andyc@… Owned by: Samuel Krempp
Milestone: Boost 1.35.0 Component: format
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

When compiling with gcc, we get a warning about unused fac variable in boost/format/parsing.hpp.

The following patch fixes it:

===== boost/format/parsing.hpp 1.1 vs + =====
--- 1.1/boost/format/parsing.hpp        2007-08-17 11:57:50 +01:00
+++ +/boost/format/parsing.hpp  2007-08-17 13:28:25 +01:00
@@ -47,6 +47,7 @@
 #if ! defined( BOOST_NO_LOCALE_ISDIGIT )
         return fac.is(std::ctype<Ch>::digit, c);
 # else
+        (void) fac;
         using namespace std;
         return isdigit(c); 
 #endif 

Change History (2)

comment:1 by René Rivera, 15 years ago

Component: Noneformat
Owner: set to Samuel Krempp

comment:2 by John Maddock, 15 years ago

Milestone: To Be DeterminedBoost 1.35.0
Resolution: fixed
Status: newclosed

This appears to have been fixed in SVN Trunk. Please reopen if it resurfaces.

Note: See TracTickets for help on using tickets.