ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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:28:09 -0700
On Jun 8, 2011, at 1:23 AM, Guy Harris 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).

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH

What part of "(void)" does the compiler not understand?

Should we just use spinboxes for numeric preferences and thus be guaranteed that it'll be a valid number?