Re: Disabling warn_unused_result warnings on a case-by-case basis

2016-06-14 Thread Manuel López-Ibáñez
On 14/06/16 10:32, Florian Weimer wrote: A long time ago, GCC decided that warn_unused_result warnings should *not* be silenced by casting to void, as in: (void) write (STDOUT_FILENO, message, strlen (message)); Apparently, programmers have figured out to use this idiom as a replacement:

Re: Disabling warn_unused_result warnings on a case-by-case basis

2016-06-14 Thread Pádraig Brady
On 14/06/16 10:32, Florian Weimer wrote: A long time ago, GCC decided that warn_unused_result warnings should *not* be silenced by casting to void, as in: (void) write (STDOUT_FILENO, message, strlen (message)); Apparently, programmers have figured out to use this idiom as a replacement: