This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [boost] lots of warning with gcc-4.8.1 + boost-1.54.0
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Nathan Ridge <zeratul976 at hotmail dot com>
- Cc: Boost Developers Mailing List <boost at lists dot boost dot org>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 3 Jul 2013 09:29:44 +0100
- Subject: Re: [boost] lots of warning with gcc-4.8.1 + boost-1.54.0
- References: <kqvuqc$44n$2 at ger dot gmane dot org> <BLU162-W15D6768C67AE7BB12E86AB96730 at phx dot gbl>
On 3 July 2013 02:41, Nathan Ridge wrote:
>> Lots of warnings like this:
>>
>> ./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally
>> defined but not used [-Wunused-local-typedefs]
>>
>> when building 1.54.0 with gcc-4.8.1 (fedora f19)
>
> This warning is new in GCC 4.8, and I have been seeing a ton of them
> not just in boost, but in every codebase I've built.
It was new in GCC 4.7, http://gcc.gnu.org/gcc-4.7/changes.html
It affects Boost more than most code because of the prevalent use of
concept checks and static assertions which are usually implemented
using typedefs but only conditionally compiled.
I keep being surprised noone's disabled it in gcc.jam yet.