Modify

Opened 8 years ago

Closed 7 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

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by Dean Michael Berris

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 Changed 7 years ago by Marshall Clow

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

comment:3 Changed 7 years ago by anonymous

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.