This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12150] [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2003 07:06:49 -0000
- Subject: [Bug c/12150] [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]
- References: <20030903084134.12150.mattias@virtutech.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12150
------- Additional Comments From gdr at integrable-solutions dot net 2003-09-05 07:06 -------
Subject: Re: [3.3/3.4 regression] warning in dead code (comparison is always false) [regression]
"mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| If the user does not want warnings in code that is unreachable, that
| code should be #ifdef'd out on platforms that are unreachable.
Hey, this would take us away from
if (HAVE_FEATURE)
{
}
else
{
}
which has been advocated with good reasons.
-- Gaby