From 8cf857d4ccdc826115980899588b656b05886092 Mon Sep 17 00:00:00 2001 From: paolo Date: Tue, 29 May 2012 10:09:51 +0000 Subject: [PATCH] =?utf8?q?2012-05-29=20=20Manuel=20L=C3=B3pez-Ib=C3=A1?= =?utf8?q?=C3=B1ez=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). * c-opts.c (c_common_handle_option): Remove code handling warn_missing_braces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187948 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/ChangeLog | 6 ++++++ gcc/c-family/c-opts.c | 2 -- gcc/c-family/c.opt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 88072c0ee33..650302b0e93 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2012-05-29 Manuel López-Ibáñez + + * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). + * c-opts.c (c_common_handle_option): Remove code handling + warn_missing_braces. + 2012-05-28 Paolo Carlini PR c++/25137 diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index a88fff5c27b..2330c133292 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -401,8 +401,6 @@ c_common_handle_option (size_t scode, const char *arg, int value, done in c_common_post_options. */ if (warn_enum_compare == -1) warn_enum_compare = value; - - warn_missing_braces = value; } else { diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 0b72d79ae91..c5daf754b3c 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -463,7 +463,7 @@ C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning Warn about suspicious declarations of \"main\" Wmissing-braces -C ObjC C++ ObjC++ Var(warn_missing_braces) Warning +C ObjC C++ ObjC++ Var(warn_missing_braces) Warning LangEnabledBy(C ObjC,Wall) Warn about possibly missing braces around initializers Wmissing-declarations -- 2.11.4.GIT