]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
c-typeck.c (convert_arguments): Take expression for called function rather than its...
authorJoseph Myers <jsm@polyomino.org.uk>
Wed, 6 Oct 2004 22:16:29 +0000 (23:16 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 6 Oct 2004 22:16:29 +0000 (23:16 +0100)
commit03dafa610868e97f890319ff7d7ee64a227132b2
treeff95ee85f5ed2d17d86ce971abc3122aa4733e9f
parent75917fc03241362a4e81490273c6d4c445183817
c-typeck.c (convert_arguments): Take expression for called function rather than its name.

* c-typeck.c (convert_arguments): Take expression for called
function rather than its name.  Handle ObjC selectors directly
rather than relying on warn_for_assignment to do so.  Call warning
directly rather than warn_for_assignment.  Use %qE in diagnostics.
Say "argument" rather than "arg" in diagnostics.
(build_function_call): Update call to convert_arguments.

testsuite:
* gcc.dg/Wconversion-2.c, gcc.dg/func-args-1.c: New tests.

From-SVN: r88630
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wconversion-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/func-args-1.c [new file with mode: 0644]