This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69237] [6 Regression] strange -Wmisleading-indentation warning when building Chromium
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Jan 2016 13:37:38 +0000
- Subject: [Bug c++/69237] [6 Regression] strange -Wmisleading-indentation warning when building Chromium
- Auto-submitted: auto-generated
- References: <bug-69237-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69237
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Franz Sirl from comment #2)
> Or the '--fcount;'. Does the warning go away if you add braces like that:
>
> void pop(T* elem) { SkASSERT(fCount > 0); if (elem) { *elem =
> (*this)[fCount - 1]; } --fCount; }
Yes, sure.
But does this warning really make sense for simple one-liners?