This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/3074] Statement with no effect not flagged with -Wall
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2003 21:50:39 -0000
- Subject: [Bug c/3074] Statement with no effect not flagged with -Wall
- References: <20010607075601.3074.fritz@intrinsity.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-22 21:50 -------
The problem is that fold-const is changing the line to:
((void)(a == 1 ? 5 : 0), a == 2 ? (a == 1 ? 5 : 0) | 1 : (a == 1 ? 5 : 0))
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-05-25 15:34:22 |2003-11-22 21:50:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074