This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64639] false negative of -Wunused-value
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Jan 2015 07:51:45 +0000
- Subject: [Bug c/64639] false negative of -Wunused-value
- Auto-submitted: auto-generated
- References: <bug-64639-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64639
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
"(a = 0) != 0" has a side effect of setting a to 0.
I think in this case, clang is incorrectly warning about it.