This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add missing Var for Wswitch-bool (PR c/60439)
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 16 Jun 2014 14:28:43 +0200
- Subject: [committed] Add missing Var for Wswitch-bool (PR c/60439)
- Authentication-results: sourceware.org; auth=none
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 <polacek@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