This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: Fix "set but not used" warnings from MIPS bits/atomic.h


On Fri, Nov 16, 2012 at 7:36 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> MIPS glibc builds are very noisy with "set but not used" warnings
> (among others).  Many of those warnings come from the bits/atomic.h
> macros, which are structured so that an outer macro needs to provide
> a variable __prev for use by an inner macro, but only in some cases is
> the value the asm stores in that variable used.  I've applied this
> patch to use __attribute__ ((unused)) in those macros that don't use
> the value stored in __prev (so changing the numbers of warnings in
> MIPS glibc builds from tens of thousands to hundreds).

Thank you. This has annoyed me for a long time.


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