This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [boost] lots of warning with gcc-4.8.1 + boost-1.54.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]