[Bug c/6980] -Wbad-function-cast gives bogus warning for (double) rand()
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 24 00:08:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-24 00:08 -------
Subject: Bug 6980
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2004-09-24 00:08:37
Modified files:
gcc : ChangeLog c-typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: Wbad-function-cast-1.c
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5594&r2=2.5595
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.378&r2=1.379
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4339&r2=1.4340
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/Wbad-function-cast-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6980
More information about the Gcc-bugs
mailing list