Boost C++ Libraries: Ticket #1196: Patch: when BOOST_NO_STD_LOCALE is not defined, boost/format/internals.hpp fails to compile. https://svn.boost.org/trac10/ticket/1196 <p> With gcc, we get a compile error when BOOST_NO_STD_LOCALE is not defined: </p> <p> .../boost/format/internals.hpp:106: warning: unused parameter `locale_t*loc_default' </p> <p> The following patch fixes it: </p> <pre class="wiki">===== boost/format/internals.hpp 1.1 vs + ===== --- 1.1/boost/format/internals.hpp 2007-08-17 11:57:50 +01:00 +++ +/boost/format/internals.hpp 2007-08-17 13:26:09 +01:00 @@ -104,6 +104,7 @@ template&lt;class Ch, class Tr&gt; void stream_format_state&lt;Ch,Tr&gt;:: apply_on (basic_ios &amp; os, boost::io::detail::locale_t * loc_default) const { + (void) loc_default; // keep compiler quiet if we don't support locales // set the state of this stream according to our params if(width_ != -1) os.width(width_); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1196 Trac 1.4.3 René Rivera Tue, 21 Aug 2007 15:20:10 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1196#comment:1 https://svn.boost.org/trac10/ticket/1196#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Samuel Krempp</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">format</span> </li> </ul> Ticket John Maddock Tue, 20 Nov 2007 11:50:56 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/1196#comment:2 https://svn.boost.org/trac10/ticket/1196#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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> Fixed in SVN Trunk. </p> Ticket