c-common.c (check_function_arguments): Replace Wmissing-format-attribute with Wsugges...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 30 Apr 2012 08:02:53 +0000 (08:02 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 30 Apr 2012 08:02:53 +0000 (08:02 +0000)
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

gcc/c-family/ChangeLog
gcc/c-family/c-common.c

index 0185841c795ea5820cf03a5ef86073184f22a919..b108b509971ac3544e7fbb6c7d90f78c14f93fd8 100644 (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
index bf5b034ee2d07004b0187445872bca9f47fd7cbf..089c7576ddfa4cff70d01eb37336352233d5bc46 100644 (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)