This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
new warnings building cp-demangle.c
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: iant at google dot com
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 19 May 2009 10:28:21 +1000
- Subject: new warnings building cp-demangle.c
Hi Ian
In the last couple of days, I have started seeing the following warnings
when building target-libiberty:
/home/bje/source/gcc-clean/libiberty/cp-demangle.c:723: warning: logical âandâ of mutually exclusive tests is always false
/home/bje/source/gcc-clean/libiberty/cp-demangle.c:742: warning: logical âandâ of mutually exclusive tests is always false
The code around line 723 is:
if (p == NULL
|| name == NULL
|| (kind < gnu_v3_complete_object_ctor
&& kind > gnu_v3_complete_object_allocating_ctor))
return 0;
(and similarly for line 742). A bug?
Cheers, Ben