This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: -Wswitch-enum and -Wswitch-default


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]