Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] New GCC, new option required?

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Wed, 13 Jul 2011 10:47:30 -0400
Re:

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

Is there a (reasionably easy) way to use this option only when compiling
in the .../dissectors directory ?

(I think that I've previously addressed the "unused_but_set" warnings
for many (all ?) of the other directories). (SVN 37600 & following...)


PS: I've been using

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

so that "unused-but-set-variable" is reported but treated as a warning
instead of an error.