aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-07-22 13:10:34 -0400
committerDJ Delorie <dj@gcc.gnu.org>2005-07-22 13:10:34 -0400
commit1a8d0d41ac5e1593cebec8a1fc7b01d5e61f7018 (patch)
tree9601686ec9e3297b4ff1b6e24201f563a1d53524 /gcc/c-format.c
parent94e2b58a2886f36597e5dc16282f84d8ebefff72 (diff)
downloadgcc-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/c-format.c')
-rw-r--r--gcc/c-format.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}