I'm building an old version of wireshark (1.5.0) and I got in the compilation time 255 errors. Most if not all of them seem to be "set but not used [-Wunused-but-set-variable]". I'm using gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1). I want to just ignore them instead of working on fixing them for now! One of the ways to accomplish this is descried in here. It uses Wno-unused-function which is one of the gcc flags. I want to try that solution but I'm not sure where can I implement it in my case (which files I need to modify and how?). There are more than one Makefile and when I searched the word gcc in my current build directory I found it occurs 18,643 times. Thanks in advance! asked 02 Jul '14, 15:35 flora |
One Answer:
(1.5.0 was a development release; you should probably be working on either 1.4.x or 1.6.x.)
so if you do care about other warnings, removing The SourceForge answer is, I suspect, wrong; the user complained about messages such as So, if you still want warnings to be treated as errors, but don't want particular warnings to be issued at all, then, if adding it to the options is sufficient, running the configure script as
would work. However, doing that might put But answered 02 Jul '14, 15:59 Guy Harris ♦♦ |
Thanks your answer! It helps a lot. Wireshark is working perfect now after using in the configuration part
CFLAGS="-Wno-unused-but-set-variable" ./configure --disable-warnings-as-errors