re PR c/6980 (-Wbad-function-cast gives bogus warning for (double) rand())
authorJoseph Myers <jsm@polyomino.org.uk>
Fri, 24 Sep 2004 00:08:37 +0000 (01:08 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 24 Sep 2004 00:08:37 +0000 (01:08 +0100)
commitff80e49f2d8442bc05fcbde9238ceaf5b77790b3
treee9fe71e9b3dd13025618bfa5b1e1a256b7bf1ed5
parent847450b41d77461a88cde1fb4dffd5bde6f50c39
re PR c/6980 (-Wbad-function-cast gives bogus warning for (double) rand())

PR c/6980
* c-typeck.c (build_c_cast): Improve wording of
-Wbad-function-cast diagnostic.

testsuite:
* gcc.dg/Wbad-function-cast-1.c: New test.

From-SVN: r87991
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wbad-function-cast-1.c [new file with mode: 0644]