Wireshark-dev: [Wireshark-dev] New GCC, new option required?
From: Jaap Keuter <[email protected]>
Date: Wed, 13 Jul 2011 14:05:23 +0200
Hi list,

I think we need a new GCC option added to configure.in:

AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-unused-but-set-variable)

This option came into existence with GCC 4.6 and is causing havoc all over.
I've been going through a lot of dissectors, many of which have either:
 * unused set variables
 * variables set for a legitimate purpose, but not used (yet)
 * bugs

Two bugs are already addressed. I've got some code cleanup done, some stubs.
Remains the generated dissector code which spawns many of these errors.
Therefore I think this item is needed.

I have lost the use of my development machine for at least another week, so
can't work on this myself.

Thanks,
Jaap