Patchwork [committed] Add missing Var for Wswitch-bool (PR c/60439)

login
register
mail settings
Submitter Marek Polacek
Date June 16, 2014, 12:28 p.m.
Message ID <20140616122843.GE17965@redhat.com>
Download mbox | patch
Permalink /patch/360121/
State New
Headers show

Comments

Marek Polacek - June 16, 2014, 12:28 p.m.
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.


	Marek

Patch

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