c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 29 May 2012 10:09:51 +0000 (10:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 29 May 2012 10:09:51 +0000 (10:09 +0000)
2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* 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

gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/c-family/c.opt

index 88072c0ee332eca5bd29893cc466c015e5e8f21b..650302b0e937471698c39bc5422cf4a95e92cfec 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * 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  <paolo.carlini@oracle.com>
 
        PR c++/25137
index a88fff5c27b5675024f3ab2d49840cefda884a4e..2330c1332926b756345a0da543d0554a2f17e504 100644 (file)
@@ -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
        {
index 0b72d79ae918305ef5fded10c146046def3836e0..c5daf754b3c95e5920a8d594fa171f3ba133e92c 100644 (file)
@@ -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