Subject: [Boost-bugs] [Boost C++ Libraries] #8547: GCC 4.8 warns unused local typedef with -Wall option
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-04 05:40:10
#8547: GCC 4.8 warns unused local typedef with -Wall option
--------------------------------------------------+-------------------------
Reporter: Wei-Chiu Chuang <weichiu@â¦> | Owner: apolukhin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
Version: Boost Development Trunk | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
{{{
$ cat boost_gcc48.cc
#include <boost/lexical_cast.hpp>
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&, 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;
^
}}}
Suggested fix: remove the typedef.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8547> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC