This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] Quash warning


On 18/08/12 07:08, Roland McGrath wrote:
>> This quashes one unused-but-set warning.  Ok?
> 
> This is OK, but if there are many that come from the same macros then it
> might be worth looking into a different approach that makes the macro
> itself arrange to suppress the warning, rather than cluttering up a lot of
> source code.  I'm not sure if just adding a 'foo = foo;' statement is
> enough, but it might be.
> 

I find "(void)foo;" is best to remove the unused-but-set warning.

Allan


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