* c-common.c (check_function_arguments): Replace
Wmissing-format-attribute with Wsuggest-attribute=format.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186957
138bc75d-0d04-0410-961f-
82ee72b054a4
2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
+ * c-common.c (check_function_arguments): Replace
+ Wmissing-format-attribute with Wsuggest-attribute=format.
+
+2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
* c.opt (Wsuggest-attribute=format): New. Alias of
Wmissing-format-attribute.
* c-format.c (decode_format_type): Replace
/* Check for errors in format strings. */
- if (warn_format || warn_missing_format_attribute)
+ if (warn_format || warn_suggest_attribute_format)
check_function_format (TYPE_ATTRIBUTES (fntype), nargs, argarray);
if (warn_format)