[Bug c++/69029] [6 Regression] bogus -Wmisleading-indentation warning on one-line loops
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 10 16:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69029
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Sun Jan 10 16:39:39 2016
New Revision: 232202
URL: https://gcc.gnu.org/viewcvs?rev=232202&root=gcc&view=rev
Log:
Fix -Wmisleading indentation false-positive for do-while statement
gcc/c-family/ChangeLog:
PR c++/69029
* c-indentation.c (should_warn_for_misleading_indentation):
Don't warn about do-while statements.
gcc/testsuite/ChangeLog:
PR c++/69029
* c-c++-common/Wisleading-indentation.c: Augment test.
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-indentation.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation.c
More information about the Gcc-bugs
mailing list