Wireshark mailing list archives

Re: [Wireshark-commits] rev 37601: /trunk/gtk/ /trunk/gtk/: dcerpc_stat.c graph_analysis.c prefs_dlg.c rtp_player.c sctp_assoc_analyse.c sctp_byte_graph_dlg.c sctp_graph_dlg.c sctp_stat.c


From: Guy Harris <guy () alum mit edu>
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?

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: