I've gotten to the point in my custom Wireshark build for Windows that all that's left now is warnings--but these warnings are being treated as errors. As the vast majority of them are harmless (unused variabled, for example) is there any way to set it so that warnings are not treated as errors? asked 21 Jan '15, 05:41 mehubb985 |
2 Answers:
For Windows nmake builds, edit the following part of config.nmake as described in the comment:
As Jaap says though, there should be no warnings, all of the core Wireshark code is expected to build without any warnings and your custom code should too. You might also run the perl check* scripts in tools, as they also pick up errors. answered 21 Jan '15, 06:21 grahamb ♦ |
Have a look at this configure option answered 21 Jan '15, 06:00 Jaap ♦ |
If a variable is reported as unused, either 1) it's not useful and should be removed or 2) it is useful and there's a typo or some other sort of bug in your code that means it's not being used when it should be.
That's why the Wireshark buildbots turn on warnings-as-errors whenever possible.