Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 37601: /trunk/gtk/ /trunk/gtk/: dcer
From: Guy Harris <[email protected]>
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,  <[email protected]> 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).