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: Petr Machata <pmachata at redhat dot com>
- To: boost at lists dot boost dot org
- Cc: Jonathan Wakely <jwakely dot boost at kayari dot org>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Fri, 19 Jul 2013 02:09:11 +0200
- 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> <CAJcCCPPXMZomGvz96-E70h=JS_0ziNSNXiipQbfoW7LpnAP5Jw at mail dot gmail dot com> <BLU162-W1438E6BBA50E03EFAA44C296730 at phx dot gbl>
Nathan Ridge <zeratul976@hotmail.com> 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