]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
re PR c/29521 (Confusing warning for return with expression in function returning...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 13 Feb 2007 00:29:17 +0000 (00:29 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 13 Feb 2007 00:29:17 +0000 (00:29 +0000)
commit2397c5750e422ea5b7061dbfbabdbd3f2ba54905
treecffb83fc878960a6c078d51494792251b606b706
parentbad333ffe374313f11880ee8b1792bd05ff9f725
re PR c/29521 (Confusing warning for return with expression in function returning void)

2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c/29521
* c-typeck.c (c_finish_return): Improve warning message.

testsuite/
* gcc.dg/c90-return-1.c: Update output.
* gcc.dg/c99-return-1.c: Likewise.

From-SVN: r121876
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr29521-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr29521.c [new file with mode: 0644]