From: Manuel López-Ibáñez Date: Tue, 29 May 2012 10:09:51 +0000 (+0000) Subject: c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f7f7aca357246cb38a1a4f9e1177f5adfd3f25e;p=gcc.git c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). 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. From-SVN: r187948 --- 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