Fix -Wmisleading-indentation warning in top.c
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 18 Dec 2019 17:25:46 +0000 (12:25 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 18 Dec 2019 17:25:46 +0000 (12:25 -0500)
commitbbde7025e0d5629e309c15af5a07bac272e21b07
tree6a613538d46e9d2bcc3739806e2e409515f29b85
parent599956cfe164ca2f4f7d04b90aee1db98930a023
Fix -Wmisleading-indentation warning in top.c

When building top.c with this clang (daily build from apt.llvm.org):

    $ clang++-10 --version
    clang version 10.0.0-+20191211091425+f99297176cd-1~exp1~20191211082036.1372

I get:

    /home/smarchi/src/binutils-gdb/gdb/top.c:1549:5: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
        fprintf_filtered (stream, _("\n\
        ^
    /home/smarchi/src/binutils-gdb/gdb/top.c:1543:3: note: previous statement is here
      if (SYSTEM_GDBINIT_DIR[0])
      ^

This looks like a legitimate warning, the fprintf_filtered is too much
indented.  Fix it, and at the same time add a bit of whitespace to make
this function easier to read.

gdb/ChangeLog:

* top.c (print_gdb_configuration): Adjust indentation.
gdb/ChangeLog
gdb/top.c
This page took 0.024555 seconds and 4 git commands to generate.