summaryrefslogtreecommitdiff
path: root/gcc/c-family/c.opt
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-23 00:14:46 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-23 00:14:46 +0000
commit1a2a35f0e0563379cf44b953554f868999d95489 (patch)
treeec438265c3481cd0c137ec1444b398d057b6cd01 /gcc/c-family/c.opt
parentd83460737b0badfb4c29d3f36875b35bcd6d6439 (diff)
downloadgcc-1a2a35f0e0563379cf44b953554f868999d95489.tar.gz
PR c++/49793
* typeck2.c (check_narrowing): Downgrade permerror to pedwarn. Make conditional on -Wnarrowing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176665 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c.opt')
-rw-r--r--gcc/c-family/c.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 00bdd93f124..617ea2d8905 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -489,6 +489,10 @@ Wmultichar
C ObjC C++ ObjC++ Warning
Warn about use of multi-character character constants
+Wnarrowing
+C ObjC C++ ObjC++ Warning Var(warn_narrowing) Init(1)
+-Wno-narrowing In C++0x mode, ignore ill-formed narrowing conversions within { }
+
Wnested-externs
C ObjC Var(warn_nested_externs) Warning
Warn about \"extern\" declarations not at file scope