From: DJ Delorie Date: Fri, 22 Jul 2005 17:10:34 +0000 (-0400) Subject: c-format.c (check_function_format): Change warning control option from OPT_Wattribute... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018;p=gcc.git c-format.c (check_function_format): Change warning control option from OPT_Wattribute to OPT_Wmissing_format_attribute. * c-format.c (check_function_format): Change warning control option from OPT_Wattribute to OPT_Wmissing_format_attribute. From-SVN: r102286 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e93626f4008..75ca975defd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-07-22 DJ Delorie + + * c-format.c (check_function_format): Change warning control + option from OPT_Wattribute to OPT_Wmissing_format_attribute. + 2005-07-22 Diego Novillo * tree-ssa-alias.c (count_ptr_derefs): Do not consider diff --git a/gcc/c-format.c b/gcc/c-format.c index 587f15e9c6b..7d5af422eb5 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -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); } }