Modify

Opened 8 years ago

Closed 7 years ago

#3621 closed Bugs (fixed)

warnings emited when highest level warning set

Reported by: ramey Owned by: johnmaddock
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 mikhailberis

  • 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

  • Component changed from None to type_traits
  • Milestone changed from Boost 1.41.0 to To Be Determined
  • Owner changed from dlwalker to johnmaddock

comment:3 Changed 7 years ago by anonymous

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

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

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.