diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-06-30 23:28:02 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-06-30 23:28:02 +0100 |
commit | 9980154889a2bfd00c0c76176595948768be1487 (patch) | |
tree | 6edd9cc7bd8414f96db728a2727a2fae85c58700 /gcc/cp | |
parent | a6163c2238f5e27c5063727e75518de1e389bd04 (diff) | |
download | gcc-9980154889a2bfd00c0c76176595948768be1487.zip gcc-9980154889a2bfd00c0c76176595948768be1487.tar.gz gcc-9980154889a2bfd00c0c76176595948768be1487.tar.bz2 |
c-common.h (check_function_format): Remove first parameter.
* c-common.h (check_function_format): Remove first parameter.
* c-format.c (format_check_context): Remove status.
(check_format_info, check_format_info_main,
maybe_read_dollar_number, avoid_dollar_number,
finish_dollar_format_checking, check_format_types,
check_function_format): Remove first parameter. Don't use
status_warning.
(check_format_arg): Don't use status_warning.
(status_warning): Remove.
* c-common.c (check_function_arguments): Update call to
check_function_format.
cp:
* call.c (build_over_call), typeck.c (build_function_call): Update
calls to check_function_format.
From-SVN: r83935
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/call.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b094bac..4174c40 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-06-30 Joseph S. Myers <jsm@polyomino.org.uk> + + * call.c (build_over_call), typeck.c (build_function_call): Update + calls to check_function_format. + 2004-06-30 Richard Henderson <rth@redhat.com> * call.c (build_over_call): Use __builtin_memcpy for copying diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 99603ea..290fd6b 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4724,7 +4724,7 @@ build_over_call (struct z_candidate *cand, int flags) converted_args = nreverse (converted_args); if (warn_format) - check_function_format (NULL, TYPE_ATTRIBUTES (TREE_TYPE (fn)), + check_function_format (TYPE_ATTRIBUTES (TREE_TYPE (fn)), converted_args); /* Avoid actually calling copy constructors and copy assignment operators, diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 2dc21db..1dfb337 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -2486,7 +2486,7 @@ build_function_call (tree function, tree params) /* Check for errors in format strings. */ if (warn_format) - check_function_format (NULL, TYPE_ATTRIBUTES (fntype), coerced_params); + check_function_format (TYPE_ATTRIBUTES (fntype), coerced_params); return build_cxx_call (function, coerced_params); } |