summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 22:30:34 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 22:30:34 +0000
commit8f9758e67bf7e0b4f74bd5d60c941ef0ca93aff5 (patch)
treeaee24b2a12a5ea311774eaf196ad657bc620dd50 /gcc/cp/call.c
parenta01275475cc2396fed5679e5a666df09e83148ca (diff)
downloadgcc-8f9758e67bf7e0b4f74bd5d60c941ef0ca93aff5.tar.gz
cp:
* call.c (build_over_call), typeck.c (build_function_call): Call check_function_arguments instead of check_function_format. testsuite: * g++.dg/warn/nonnull1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 290fd6b2b43..76f0291a5a1 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4723,9 +4723,8 @@ build_over_call (struct z_candidate *cand, int flags)
converted_args = nreverse (converted_args);
- if (warn_format)
- check_function_format (TYPE_ATTRIBUTES (TREE_TYPE (fn)),
- converted_args);
+ check_function_arguments (TYPE_ATTRIBUTES (TREE_TYPE (fn)),
+ converted_args);
/* Avoid actually calling copy constructors and copy assignment operators,
if possible. */