This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24900] [4.1 Regression] new "value computed is not used" warning in gcc 4.1
- From: "aldyh at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Nov 2005 21:12:46 -0000
- Subject: [Bug middle-end/24900] [4.1 Regression] new "value computed is not used" warning in gcc 4.1
- References: <bug-24900-4603@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from aldyh at gcc dot gnu dot org 2005-11-17 21:12 -------
We used to allow this, but have now made the warning stricter. This behavior
was done deliberately. See:
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg00275.html
As is explained in the thread, you can modify the macro to use statement
expressions and avoid the warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24900