Fix a -Wmisleading-indentation false-negative
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 24 Sep 2015 01:55:59 +0000 (01:55 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Thu, 24 Sep 2015 01:55:59 +0000 (01:55 +0000)
commit6b95d7cc2d5ba73f698a4f0439cdff2145583df2
tree81efc45344b5a09e6935be720cf7c69891d47ab4
parent3d5cda1290ec317a868fe7462e1f67f130cbac69
Fix a -Wmisleading-indentation false-negative

gcc/c-family/ChangeLog:

* c-indentation.c (should_warn_for_misleading_indentation):
Compare next_stmt_vis_column with guard_line_first_nws instead
of with guard_line_vis_column.

gcc/testsuite/ChangeLog:

* c-c++-common/Wmisleading-indentation.c: Augment test.

From-SVN: r228071
gcc/c-family/ChangeLog
gcc/c-family/c-indentation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmisleading-indentation.c