|
Boost : |
Subject: Re: [boost] lots of warning with gcc-4.8.1 + boost-1.54.0
From: Petr Machata (pmachata_at_[hidden])
Date: 2013-07-18 20:09:11
Nathan Ridge <zeratul976_at_[hidden]> writes:
>> On 3 July 2013 02:41, Nathan Ridge wrote:
>>>> ./boost/bind/arg.hpp:37:22: warning: typedef âT_must_be_placeholderâ locally
>>>> defined but not used [-Wunused-local-typedefs]
>>
>> It was new in GCC 4.7, http://gcc.gnu.org/gcc-4.7/changes.html
>
> I've seen spews of that warning for other large projects, such as
> clang or wxWidgets, not just boost.
>
> Would GCC consider removing it from -Wall?
GCC doesn't emit this warning if such typedefs are annotated with
__attribute__((__unused__)). We just need to fix all instances of this
problem. So far I identified these there:
- https://svn.boost.org/trac/boost/ticket/8844 (Boost.Bind)
- https://svn.boost.org/trac/boost/ticket/8847 (Boost.ConceptCheck)
- https://svn.boost.org/trac/boost/ticket/8859 (Boost.Serialization)
Thanks,
PM
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk