Boost C++ Libraries: Ticket #2455: g++ -Wall compile error: boost/format/parsing.hpp:47: warning: unused parameter 'fac' https://svn.boost.org/trac10/ticket/2455 <p> If BOOST_NO_LOCALE_ISDIGIT is defined, then if building with -W -Wall, you get a compile error: </p> <p> /home/andyc/work/tiger/1/include/ppc_BOS/boost/format/parsing.hpp: In instantiation of 'bool boost::io::detail::wrap_isdigit(const Facet&amp;, Ch) [with Ch = char, Facet = boost::io::basic_oaltstringstream&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;]': /home/andyc/work/tiger/1/include/ppc_BOS/boost/format/parsing.hpp:153: instantiated from 'bool boost::io::detail::parse_printf_directive(Iter&amp;, const Iter&amp;, boost::io::detail::format_item&lt;Ch, Tr, Alloc&gt;*, const Facet&amp;, size_t, unsigned char) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;, Iter = const char*, Facet = boost::io::basic_oaltstringstream&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;]' /home/andyc/work/tiger/1/include/ppc_BOS/boost/format/parsing.hpp:449: instantiated from 'boost::basic_format&lt;Ch, Tr, Alloc&gt;&amp; boost::basic_format&lt;Ch, Tr, Alloc&gt;::parse(const std::basic_string&lt;_CharT, _Traits, _Alloc&gt;&amp;) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;]' /home/andyc/work/tiger/1/include/ppc_BOS/boost/format/format_implementation.hpp:33: instantiated from 'boost::basic_format&lt;Ch, Tr, Alloc&gt;::basic_format(const Ch*) [with Ch = char, Tr = std::char_traits&lt;char&gt;, Alloc = std::allocator&lt;char&gt;]' /home/andyc/work/tiger/1/libs/cli/user/fc.cpp:76: instantiated from here /home/andyc/work/tiger/1/include/ppc_BOS/boost/format/parsing.hpp:47: warning: unused parameter 'fac' </p> <p> The following patch fixes it: </p> <h5 class="section" id="boostformatparsing.hpp1.1vs">boost/format/parsing.hpp 1.1 vs +</h5> <p> --- 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 @@ </p> <blockquote> <p> #if ! defined( BOOST_NO_LOCALE_ISDIGIT ) </p> <blockquote> <p> return fac.is(std::ctype&lt;Ch&gt;::digit, c); </p> </blockquote> <p> # else </p> </blockquote> <p> + (void) fac; </p> <blockquote> <p> using namespace std; return isdigit(c); </p> </blockquote> <blockquote> <p> #endif </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2455 Trac 1.4.3 Marshall Clow Wed, 08 Apr 2009 16:14:50 GMT owner changed https://svn.boost.org/trac10/ticket/2455#comment:1 https://svn.boost.org/trac10/ticket/2455#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Samuel Krempp</span> to <span class="trac-author">Marshall Clow</span> </li> </ul> <p> Fixed in trunk (revision <a class="missing ticket">#52258</a>) I will merge to release after a few test cycles. </p> Ticket Marshall Clow Tue, 21 Apr 2009 17:03:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2455#comment:2 https://svn.boost.org/trac10/ticket/2455#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to release in revision 52525. </p> Ticket