Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 37601: /trunk/gtk/ /trunk/gtk/: dcer
From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Wed, 08 Jun 2011 11:14:32 -0400
On 6/8/2011 10:46 AM, Дмитрий Дьяченко wrote:
[FYI] http://gcc.gnu.org/ml/gcc/2010-05/msg00657.html

[snip]

As the compiler documentation states, warn_unused_result was intended
for cases where failing to check the return value is always a security
risk or a bug.  The documentation cites the example of realloc.  That
is a case where casting the return value to (void) would always be
wrong.  The compiler really should warn for that code by default; if
you have some crazy need to ignore the result of realloc, just use the
-Wno-unused-result option.

[snip]

Dmitry


There's always something new to learn....   :)

Thanks for the link.

Bill