This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]