Boost C++ Libraries: Ticket #8547: GCC 4.8 warns unused local typedef with -Wall option https://svn.boost.org/trac10/ticket/8547 <pre class="wiki">$ cat boost_gcc48.cc #include &lt;boost/lexical_cast.hpp&gt; int main(){ } $ /scratch/chuangw/opt/gcc-4.8.0/bin/g++ boost_gcc48.cc -Wall -I/scratch/chuangw/boost/boost-trunk In file included from boost_gcc48.cc:1:0: /scratch/chuangw/boost/boost-trunk/boost/lexical_cast.hpp: In function 'bool boost::detail::lcast_ret_unsigned(T&amp;, const CharT*, const CharT*)': /scratch/chuangw/boost/boost-trunk/boost/lexical_cast.hpp:883:47: warning: typedef 'int_type' locally defined but not used [-Wunused-local-typedefs] typedef typename Traits::int_type int_type; ^ </pre><p> Suggested fix: remove the typedef. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8547 Trac 1.4.3 viboes Sat, 04 May 2013 09:34:01 GMT <link>https://svn.boost.org/trac10/ticket/8547#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8547#comment:1</guid> <description> <p> see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8549" title="#8549: Feature Requests: Add a BOOST_ATTRIBUTE_UNUSED macro (closed: fixed)">#8549</a>, if removal is not a solution </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sat, 04 May 2013 12:48:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8547#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8547#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84136" title="Fix for GCC-4.8 warning (refs #8547)">[84136]</a>) Fix for GCC-4.8 warning (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8547" title="#8547: Bugs: GCC 4.8 warns unused local typedef with -Wall option (closed: fixed)">#8547</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Tue, 07 May 2013 19:24:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8547#comment:3 https://svn.boost.org/trac10/ticket/8547#comment:3 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84183" title="Merge from trunk: * Fix for GCC-4.8 warning (fixes #8547) * Disable ...">[84183]</a>) Merge from trunk: </p> <ul><li>Fix for GCC-4.8 warning (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8547" title="#8547: Bugs: GCC 4.8 warns unused local typedef with -Wall option (closed: fixed)">#8547</a>) </li><li>Disable tests, invalid for C11 (clang specific) </li></ul> Ticket