[PATCH] Quash warning

Allan McRae allan@archlinux.org
Fri Aug 17 21:37:00 GMT 2012


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



More information about the Libc-alpha mailing list