[Bug c++/69237] [6 Regression] strange -Wmisleading-indentation warning when building Chromium

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 12 13:37:00 GMT 2016


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?


More information about the Gcc-bugs mailing list