Re: -Wswitch-enum and -Wswitch-default

2007-04-02 Thread Joe Buck
On Mon, Apr 02, 2007 at 09:34:39PM +0100, Manuel López-Ibáñez wrote: > On 02/04/07, Ching, Jimen (US SSA) <[EMAIL PROTECTED]> wrote: > >> Therefore, only -Wswitch is enabled by -Wall but neither of > >> Wswitch-default or Wswitch-enum are. > > > >Note; a bunch of -W options has the sentence "This

Re: -Wswitch-enum and -Wswitch-default

2007-04-02 Thread Manuel López-Ibáñez
On 02/04/07, Ching, Jimen (US SSA) <[EMAIL PROTECTED]> wrote: > Therefore, only -Wswitch is enabled by -Wall but neither of > Wswitch-default or Wswitch-enum are. 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 t

RE: -Wswitch-enum and -Wswitch-default

2007-04-02 Thread Ching, Jimen \(US SSA\)
> 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 avoi

Re: -Wswitch-enum and -Wswitch-default

2007-03-31 Thread Manuel López-Ibáñez
On 30/03/07, Ching, Jimen (US SSA) <[EMAIL PROTECTED]> wrote: Hi, I'm using g++ 4.1.1 under Fedora Core 5 in an X86 system. I read the GCC manual and it says -Wall includes the -Wswitch-enum and -Wswitch-default warnings. But I had to supply these command line options explicitly

-Wswitch-enum and -Wswitch-default

2007-03-30 Thread Ching, Jimen \(US SSA\)
Hi, I'm using g++ 4.1.1 under Fedora Core 5 in an X86 system. I read the GCC manual and it says -Wall includes the -Wswitch-enum and -Wswitch-default warnings. But I had to supply these command line options explicitly before the warnings are generated. Is the manual wrong or is there a b