Re: warn_unused_result attribute ignoring

2006-11-12 Thread Andrew Pinski
On Sun, 2006-11-12 at 23:03 +0200, Timo Sirainen wrote: > If I understood correctly, newer glibcs have added warn_unused_result > attribute to several functions when compiling with -D_FORTIFY_SOURCE=2. warn_unused_result means warn if the result is unused even with (void). This warning is doing w

warn_unused_result attribute ignoring

2006-11-12 Thread Timo Sirainen
If I understood correctly, newer glibcs have added warn_unused_result attribute to several functions when compiling with -D_FORTIFY_SOURCE=2. I think this is a good idea in general, except there are some cases where I really don't care if the call succeeds or not. Traditionally it's been possible