ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Patch: Turn on additional gcc warnings

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 21 May 2001 22:19:28 -0700 (PDT)
> the attached patch adds -W -Wno-unused to the compile flags of gcc.

Would that combination suppress warnings about unused variables, as well
as unused parameters?

"-Wsign-compare" would turn on the signed-comparison warnings, although,
unfortunately, there don't appear to be options to turn on the other
warnings that require "-W" in 2.95[.x], such as the warning if "A
nonvolatile automatic variable might be changed by a call to longjmp"
(which I think older compilers warn about with just "-Wall"), or the
warning if "A function can return either with or without a value", etc..

(Sigh.  *WHY* did the GCC people bundle a large collection of warnings
under "-W", with no way of selectively turning them on or off?)