Modify

Ticket #3621 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Change History

comment:1 Changed 4 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 4 years ago by marshall

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

comment:3 Changed 4 years ago by anonymous

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.