Opened 9 years ago
Closed 9 years ago
#8547 closed Bugs (fixed)
GCC 4.8 warns unused local typedef with -Wall option
| Reported by: | Owned by: | Antony Polukhin | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | lexical_cast |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
$ 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.
Change History (3)
comment:1 by , 9 years ago
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

see #8549, if removal is not a solution