Wireshark-commits: [Wireshark-commits] rev 37642: /trunk/gtk/ /trunk/gtk/: prefs_dlg.c

Date: Fri, 10 Jun 2011 02:10:49 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=37642

User: wmeier
Date: 2011/06/09 07:10 PM

Log:
 Add a hack to prevent a gcc warning "ignoring return value of 'strtoul'..."
 for some gcc configurations (see _FORTIFY_SOURCE).
 This hack is used instead of storing the result returned by strtoul() in a
 dummy variable so as to prevent a gcc 4.6 with -Wextra warning:
  "set but not used ...".
 
 TBD: will this hack pass muster with other validators
      such as Coverity, CLang, & etc ?
 
 For much gory detail: see the message thread starting at:
 http://www.wireshark.org/lists/wireshark-dev/201106/msg00088.html

Directory: /trunk/gtk/
  Changes    Path           Action
  +15 -2     prefs_dlg.c    Modified