This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23964] -Wparentheses doesn't catch all assignments used as truth value
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2005 20:05:43 -0000
- Subject: [Bug c/23964] -Wparentheses doesn't catch all assignments used as truth value
- References: <20050919113904.23964.glebius@FreeBSD.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From joseph at codesourcery dot com 2005-09-20 20:05 -------
Subject: Re: -Wparentheses doesn't catch all assignments used
as truth value
On Mon, 19 Sep 2005, pinskia at gcc dot gnu dot org wrote:
> I could sware this was discussed before in a bug.
Yes. The existing logic for only warning for plain assignment is
deliberate, and bug 17120 is for when I broke that for C++.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23964