https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6227
--- Comment #5 from Bill Meier <wmeier@xxxxxxxxxxx> 2011-08-10 00:50:53 EDT ---
(In reply to comment #2)
> Is there no other way to throw (cast) away the result of a function invocation?
The following ugly hack for strtoul() seems to work in GCC :
if (strtoul(...)){} // See gtk/prefs_dlg.c
so I expect doing the same would also work for fwrite().
However, in general, I prefer fixing the fwrite() calls to test the return
value (as recently done by Guy in iax2_analysis.c and by me in rtp_analysis.c).
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.