Wswitch-bool option was missing a 'Var' field, which means
-Wno-switch-bool didn't suppress the warning.

I'm committing the following as obvious.

2014-06-16  Marek Polacek  <pola...@redhat.com>

        PR c/60439
        * c.opt (Wswitch-bool): Add Var.

diff --git gcc/c-family/c.opt gcc/c-family/c.opt
index d2e047f..91f8275 100644
--- gcc/c-family/c.opt
+++ 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

        Marek

Reply via email to