This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81402] unhelpful -Wparentheses suggestion for assignment from non-zero constant
- 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: Tue, 11 Jul 2017 22:23:19 +0000
- Subject: [Bug c/81402] unhelpful -Wparentheses suggestion for assignment from non-zero constant
- Auto-submitted: auto-generated
- References: <bug-81402-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81402
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I disagree. In fact this warning has saved me many times.
I had accidentally wrote:
if (a = f())
and I was like why I was getting incorrect results.