Boost logo

Boost Users :

Subject: [Boost-users] How to disable warnings on gcc?
From: Jean-Pierre Bergamin (james_at_[hidden])
Date: 2010-08-24 07:33:28


Dear boost users

On FreeBSD 8.1 with boost 1.43 and gcc 4.2.1 we have lots of warnings like:

...
/usr/local/include/boost/type_traits/is_unsigned.hpp: In instantiation of
'boost::detail::is_ununsigned_helper<short int>':
/usr/local/include/boost/type_traits/is_unsigned.hpp:73: instantiated
 from 'boost::detail::is_unsigned_imp<short int>'
/usr/local/include/boost/type_traits/is_unsigned.hpp:123: instantiated
 from 'boost::is_unsigned<short int>'
/usr/local/include/boost/type_traits/make_unsigned.hpp:110: instantiated
 from 'boost::detail::make_unsigned_imp<short int>'
/usr/local/include/boost/type_traits/make_unsigned.hpp:130: instantiated
 from 'boost::make_unsigned<short int>'
/usr/local/include/boost/lexical_cast.hpp:846: instantiated from here
/usr/local/include/boost/type_traits/is_unsigned.hpp:40: warning:
comparison between 'enum boost::detail::is_unsigned_values<short
int>::<anonymous>' and 'enum boost::detail::is_unsigned_values<short
int>::<anonymous>'
...

Similar warnings about "comparison between ..." pop up in the
serialization library as well.

What is the easiest way to suppress these warnings? I tried using the
switches "-Wno-sign-compare" and "-Wno-conversion", but the warnings don't
go away.

Thanks for your help
James


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net