[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] test-userspec.c: do not trigger gcc's new -Wmisleading-indentati

From: Jim Meyering
Subject: [PATCH] test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
Date: Thu, 17 Mar 2016 10:46:02 -0700

I build the latest gcc from git regularly, to ensure it can
still build the tools I care about still build from source
and the resulting binaries still do pass their tests.

Here's an instance in which, when configured with
--enable-gcc-warnings, one of coreutils' tests
(inherited from gnulib) failed to compile due to this
new gcc warning:

  test-userspec.c:176:9: error: statement is indented as if it were \
            guarded by... [-Werror=misleading-indentation]
  test-userspec.c:173:7: note: ...this 'if' clause, but it is not
         if (!diag && !T[i].result)

It is a useful warning, but in this case, while the code was
indeed improperly indented, there was no semantic error.

I've pushed this patch:

Attachment: 0001-test-userspec.c-do-not-trigger-gcc-s-new-Wmisleading.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]