summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-30 08:02:53 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-30 08:02:53 +0000
commit068bea1e750b592a4e0456008c54dd54945887a0 (patch)
tree01913d39772f9c47dae4db2917a3d9ef4f9f7dfd /gcc
parent5154a747afbdb5b12b2a7e859bb0e6645e933e39 (diff)
downloadppe42-gcc-068bea1e750b592a4e0456008c54dd54945887a0.tar.gz
ppe42-gcc-068bea1e750b592a4e0456008c54dd54945887a0.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 0185841c795..b108b509971 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 bf5b034ee2d..089c7576ddf 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)
OpenPOWER on IntegriCloud