diff options
author | Andrew Cagney <ac131313@redhat.com> | 2002-03-26 15:36:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@gcc.gnu.org> | 2002-03-26 15:36:37 +0000 |
commit | 173028e5ab8009adf8df8c023ed7a9d71328fe3d (patch) | |
tree | 94846cf8b81e58eaebeff467b95dc20837930bef /gcc/flags.h | |
parent | e14365a7382302adc4144d493bbbb28275e467fc (diff) | |
download | gcc-173028e5ab8009adf8df8c023ed7a9d71328fe3d.zip gcc-173028e5ab8009adf8df8c023ed7a9d71328fe3d.tar.gz gcc-173028e5ab8009adf8df8c023ed7a9d71328fe3d.tar.bz2 |
Add -Wswitch-enum. Document.
Fix PR c/5044.
From-SVN: r51386
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index ee9753a..b9fca23 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -135,6 +135,11 @@ extern int warn_switch; extern int warn_switch_default; +/* Warn if a switch on an enum fails to have a case for every enum + value (regardless of the presence or otherwise of a default case). */ + +extern int warn_switch_enum; + /* Nonzero means warn about function definitions that default the return type or that use a null return and have a return-type other than void. */ |