This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: -Wswitch-enum and -Wswitch-default
- From: "Ching, Jimen \(US SSA\)" <jimen dot ching at baesystems dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 2 Apr 2007 09:48:26 -1000
- Subject: RE: -Wswitch-enum and -Wswitch-default
- References: <5712874E51C67B4E8BE9408DED619D7A43943F@blums0015.bluelnk.net> <6c33472e0703310729i57e67f40p550f11ff9a072236@mail.gmail.com>
> Therefore, only -Wswitch is enabled by -Wall but neither of
> Wswitch-default or Wswitch-enum are.
The statement for -Wall says:
-Wall
All of the above `-W' options combined. This enables all the warnings about constructions that some users consider questionable, and that are easy to avoid (or modify to prevent the warning), even in conjunction with macros. This also enables some language-specific warnings described in C++ Dialect Options and Objective-C and Objective-C++ Dialect Options.
Note; a bunch of -W options has the sentence "This warning is enabled by -Wall".
But there are a few that doesn't, but they are in the "All of the above" list. Perhaps
the description for -Wall shouldn't include "All of the above '-W' options combined".
Or move the descriptions that doesn't include the "This warning is enabled by -Wall"
below the -Wall description.
It is confusing to read "All of the above" when it doesn't mean all of the above.
--jc