c-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak functi...
authorSteven Bosscher <steven@gcc.gnu.org>
Sun, 12 Oct 2003 22:09:29 +0000 (22:09 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Sun, 12 Oct 2003 22:09:29 +0000 (22:09 +0000)
commit1998463c5498f70d5add37cdbeb3e73277a47851
treed8508ce937bd1981385a02639c802f8107997f26
parentd60004eecf62e69a63dae2a66f4688e003ca3a62
c-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak function is used as a truth value.

gcc/
* c-common.c (c_common_truthvalue_conversion): Warn if the
address of a non-weak function is used as a truth value.

cp/
* cvt.c (ocp_convert): Move warning to C common code.

testsuite/
* gcc.dg/weak/weak-3.c: Fix for new warning.

From-SVN: r72409
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/weak/weak-3.c