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++/69029] [6 Regression] bogus -Wmisleading-indentation warning on one-line loops


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

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