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-common.c (check_function_arguments): Replace
        Wmissing-format-attribute with Wsuggest-attribute=format.

From-SVN: r186957
This commit is contained in:
Manuel López-Ibáñez 2012-04-30 08:02:53 +00:00
parent f04b8d6927
commit e6c69da096
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -8421,7 +8421,7 @@ check_function_arguments (const_tree fntype, int nargs, tree *argarray)
/* 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)