c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).

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
This commit is contained in:
Manuel López-Ibáñez 2012-05-29 10:09:51 +00:00 committed by Paolo Carlini
parent 53a103d304
commit 4f7f7aca35
3 changed files with 7 additions and 3 deletions

View 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

View 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
{

View 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