Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 37601: /trunk/gtk/ /trunk/gtk/: dcer

From: Дмитрий Дьяченко <dimhen@xxxxxxxxx>
Date: Wed, 8 Jun 2011 18:46:32 +0400
[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

2011/6/8 Stig Bjørlykke <stig@xxxxxxxxxxxxx>
On Wed, Jun 8, 2011 at 10:23 AM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
> Squelched with a (void) cast (it's only using strtoul() for the side-effects of setting the "pointer to the end of the number" argument and errno, in order to see whether the text value of the preference is a valid number or not).

Still getting the warning.


--
Stig Bjørlykke
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe