From e6c69da096bf607239e04f97ad2a402bcac924c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Mon, 30 Apr 2012 08:02:53 +0000 Subject: [PATCH] c-common.c (check_function_arguments): Replace Wmissing-format-attribute with Wsuggest-attribute=format. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2012-04-30 Manuel López-Ibáñez * c-common.c (check_function_arguments): Replace Wmissing-format-attribute with Wsuggest-attribute=format. From-SVN: r186957 --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-common.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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,3 +1,8 @@ +2012-04-30 Manuel López-Ibáñez + + * c-common.c (check_function_arguments): Replace + Wmissing-format-attribute with Wsuggest-attribute=format. + 2012-04-30 Manuel López-Ibáñez * c.opt (Wsuggest-attribute=format): New. Alias of 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) -- 2.30.2