Wireshark-bugs: [Wireshark-bugs] [Bug 1182] dumcap doens't compile with -Wall -Werror

Date: Thu, 26 Oct 2006 16:50:51 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1182





------- Comment #3 from jmayer@xxxxxxxxx  2006-10-26 16:50 GMT -------
They have received so many requests to fix that warning that they eventually
added a comment:

--------------
/* We use () here to mean unspecified arguments. This is deprecated
 * as of C99, but we can't change it without breaking compatibility.
 * (Note that if we are included from a C++ program () will mean
 * (void) so an explicit cast will be needed.)
 */
typedef void    (*GtkItemFactoryCallback)  ();
------------------

And also, not all warnings are correct and not all warnings may ever become
errors. Also, as mentioned above: Not everyone uses gcc and it's not always
trivial to fix a warning when your compiler doesn't show it (not everyone here
is fluent in C). One thing I intend to eventually do is to add prototypes for
all the dissectors in the .h files - these warnings are not really necessary,
but it will take some time (probably during christmas time).


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.