aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-30 08:02:53 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2012-04-30 08:02:53 +0000
commite6c69da096bf607239e04f97ad2a402bcac924c0 (patch)
tree01913d39772f9c47dae4db2917a3d9ef4f9f7dfd /gcc/c-family
parentf04b8d6927ad8374c40a3412eeda8f3be18e9fc0 (diff)
downloadgcc-e6c69da096bf607239e04f97ad2a402bcac924c0.zip
gcc-e6c69da096bf607239e04f97ad2a402bcac924c0.tar.gz
gcc-e6c69da096bf607239e04f97ad2a402bcac924c0.tar.bz2
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-common.c (check_function_arguments): Replace Wmissing-format-attribute with Wsuggest-attribute=format. From-SVN: r186957
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 0185841..b108b50 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,5 +1,10 @@
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
Wmissing-format-attribute.
* c-format.c (decode_format_type): Replace
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index bf5b034..089c757 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -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)