diff options
author | DJ Delorie <dj@redhat.com> | 2005-07-22 13:10:34 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-07-22 13:10:34 -0400 |
commit | 1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018 (patch) | |
tree | 9601686ec9e3297b4ff1b6e24201f563a1d53524 /gcc | |
parent | 94e2b58a2886f36597e5dc16282f84d8ebefff72 (diff) | |
download | gcc-1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018.zip gcc-1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018.tar.gz gcc-1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-format.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e93626f..75ca975 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/c-format.c b/gcc/c-format.c index 587f15e..7d5af42 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); } } |