c/9944: gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value
John Levon
levon@movementarian.org
Fri Mar 21 01:46:00 GMT 2003
The following reply was made to PR c/9944; it has been noted by GNATS.
From: John Levon <levon@movementarian.org>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/9944: gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value
Date: Fri, 21 Mar 2003 01:42:56 +0000
On Tue, Mar 04, 2003 at 07:44:31PM -0000, levon@movementarian.org wrote:
> if (!a & 0x4) // really meant if (!(a & 0x4))
Patch:
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg01856.html
john
More information about the Gcc-prs
mailing list