Opened 13 years ago

Closed 12 years ago

#3621 closed Bugs (fixed)

warnings emited when highest level warning set

Reported by: Robert Ramey Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.40.0 Severity: Problem
Keywords: warnings Cc: mikhailberis@…

Description

..\..\../boost/integer_traits.hpp:164:66: warning: use of C99 long long integer constant ..\..\../boost/integer_traits.hpp:164:77: warning: use of C99 long long integer constant ..\..\../boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant ..\..\../boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant

Note: I'm not sure who to assign this to so feel free to pass it on.

The compiler is gcc 4.2.3. This warning inhibits serialization library from being used at the highest warning level.

Robert Ramey

Change History (3)

comment:1 by Dean Michael Berris, 13 years ago

Cc: mikhailberis@… added

I've been trying to inhibit the warnings using GCC diagnostic pragmas in the form of:

#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wlong-long"
#endif

in multiple places where a similar warning occurs (like in Boost.Thread's libs/thread/src/pthread/once.cpp) and apparently it does not work. This seems to be a bug in GCC where there's a pending patch to resolve this issue:

http://old.nabble.com/-PATCH--RFC:-Enabling--W-no--error%3D...-for-cpplib-warnings-td26068513.html

This means it cannot be solved by using compiler-specific (GCC) pragmas even with GCC 4.4.x.

comment:2 by Marshall Clow, 12 years ago

Component: Nonetype_traits
Milestone: Boost 1.41.0To Be Determined
Owner: changed from Daryle Walker to John Maddock

comment:3 by anonymous, 12 years ago

Resolution: fixed
Status: newclosed

I believe this one should have been fixed a while back.

Note: See TracTickets for help on using tickets.