This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52106] missing -Wunused-but-set-variable warning with the a = b = ... construct
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Feb 2012 12:53:42 +0000
- Subject: [Bug c/52106] missing -Wunused-but-set-variable warning with the a = b = ... construct
- Auto-submitted: auto-generated
- References: <bug-52106-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52106
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-03 12:53:42 UTC ---
The variable is used, so it isn't unused-but-set. It is intentional that the
warning behaves the way it does.