[cfe-dev] Question on -Wswitch-enum

Nicola Gigante nicola.gigante at gmail.com
Fri Aug 3 04:59:16 PDT 2012


Il giorno 03/ago/2012, alle ore 12:51, Benjamin Kramer ha scritto:

> 
> -Weverything includes ALL warnings clang knows about, even ones that may seem useless for most codebases like the one you just hit. As far as I know the recommended way of handling this is explicitly blacklisting warnings you don't want with "-Weverything -Wno-switch-enum".
> 
> -Wswitch-enum is not silenced by default cases, just as documented by gcc's manual.
> 

So, is this the current behaviour in clang's head, contrary to what David said in the last email?

If this is fully intentional I can blacklist it, but I still don't understand the rationale, beyond simple
gcc compatibility.

> - Ben

Thanks,
Nicola



More information about the cfe-dev mailing list