Commit 4f7f7aca by Manuel López-Ibáñez Committed by Paolo Carlini

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
parent 53a103d3
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
......
......@@ -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
{
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment