Opened 4 years ago

Closed 4 years ago

#8547 closed Bugs (fixed)

GCC 4.8 warns unused local typedef with -Wall option

Reported by: Wei-Chiu Chuang <weichiu@…> Owned by: apolukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


$ cat
#include <boost/lexical_cast.hpp>
int main(){

$ /scratch/chuangw/opt/gcc-4.8.0/bin/g++ -Wall  -I/scratch/chuangw/boost/boost-trunk
In file included from
/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.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by viboes

see #8549, if removal is not a solution

comment:2 Changed 4 years ago by apolukhin

(In [84136]) Fix for GCC-4.8 warning (refs #8547)

comment:3 Changed 4 years ago by apolukhin

  • Resolution set to fixed
  • Status changed from new to closed

(In [84183]) Merge from trunk:

  • Fix for GCC-4.8 warning (fixes #8547)
  • Disable tests, invalid for C11 (clang specific)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain apolukhin.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.