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: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 8 Jun 2011 01:23:11 -0700
On Jun 8, 2011, at 1:09 AM, Stig Bjørlykke wrote:

> On Wed, Jun 8, 2011 at 12:52 AM,  <wmeier@xxxxxxxxxxxxx> wrote:
>> Log:
>>  Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
> 
> prefs_dlg.c: In function ‘pref_check’:
> prefs_dlg.c:936:12: error: ignoring return value of ‘strtoul’,
> declared with attribute warn_unused_result

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).