diff options
author | Marek Polacek <polacek@redhat.com> | 2014-06-16 12:38:07 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-06-16 12:38:07 +0000 |
commit | 5c3d09f72bfdc57939424185c55a0080497c42f3 (patch) | |
tree | 99528ac052b3aec5ce2554d4ad8dfe0f7c8c76ad /gcc | |
parent | 9a9b31a2384a7ac152b70ef5b5aaec859bed9974 (diff) | |
download | gcc-5c3d09f72bfdc57939424185c55a0080497c42f3.zip gcc-5c3d09f72bfdc57939424185c55a0080497c42f3.tar.gz gcc-5c3d09f72bfdc57939424185c55a0080497c42f3.tar.bz2 |
re PR c/60439 (No warning for case overflow in switch statement.)
PR c/60439
* c.opt (Wswitch-bool): Add Var.
From-SVN: r211707
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 0348310..ffa94eb 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2014-06-16 Marek Polacek <polacek@redhat.com> + + PR c/60439 + * c.opt (Wswitch-bool): Add Var. + 2014-06-12 Jakub Jelinek <jakub@redhat.com> PR middle-end/61486 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index d2e047f..91f8275 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -543,7 +543,7 @@ C ObjC C++ ObjC++ Var(warn_switch_enum) Warning Warn about all enumerated switches missing a specific case Wswitch-bool -C ObjC C++ ObjC++ Warning Init(1) +C ObjC C++ ObjC++ Var(warn_switch_bool) Warning Init(1) Warn about switches with boolean controlling expression Wmissing-format-attribute |