c-format.c (check_function_format): Change warning control option from OPT_Wattribute...
authorDJ Delorie <dj@redhat.com>
Fri, 22 Jul 2005 17:10:34 +0000 (13:10 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 22 Jul 2005 17:10:34 +0000 (13:10 -0400)
* c-format.c (check_function_format): Change warning control
option from OPT_Wattribute to OPT_Wmissing_format_attribute.

From-SVN: r102286

gcc/ChangeLog
gcc/c-format.c

index e93626f4008d44e5730455c62e5a8968a0887f33..75ca975defdaa408cab563ee71ca288cf5c98e99 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-22  DJ Delorie  <dj@redhat.com>
+
+       * c-format.c (check_function_format): Change warning control
+       option from OPT_Wattribute to OPT_Wmissing_format_attribute.
+
 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
 
        * tree-ssa-alias.c (count_ptr_derefs): Do not consider
index 587f15e9c6be2bf7ba5f5c41d4568e881aae079d..7d5af422eb5962672ca7f8fe8effa1bbc67aed4a 100644 (file)
@@ -896,8 +896,8 @@ check_function_format (tree attrs, tree params)
                        break;
                    }
                  if (args != 0)
-                   warning (OPT_Wattributes, "function might be possible "
-                            "candidate for %qs format attribute",
+                   warning (OPT_Wmissing_format_attribute, "function might "
+                            "be possible candidate for %qs format attribute",
                             format_types[info.format_type].name);
                }
            }