https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763
g...@mundle-online.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |g...@mundle-online.net --- Comment #6 from g...@mundle-online.net --- In the documentation of GCC 4.6.3 https://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Warning-Options.html#index-Wextra-249 as well as in the current one https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Warning-Options.html#index-Wextra-285 it is written, that -Wextra enables this kind of warnings: "The option -Wextra also prints warning messages for the following cases: ... (C++ only) An enumerator and a non-enumerator both appear in a conditional expression. " Instead of a discussion, if this warning makes sense or not, it is definitely a bug, either in gcc or in the documentation. For me it would be nice to get this kind of warnings, to port code, which uses hash defines and integer values, to the usage of enums. The warning is also missing in 4.8.2 (Ubuntu 4.8.2-19ubuntu1).