diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2019-12-18 12:25:46 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-12-18 12:25:46 -0500 |
commit | bbde7025e0d5629e309c15af5a07bac272e21b07 (patch) | |
tree | 6a613538d46e9d2bcc3739806e2e409515f29b85 /gdb/ui-out.h | |
parent | 599956cfe164ca2f4f7d04b90aee1db98930a023 (diff) | |
download | gdb-bbde7025e0d5629e309c15af5a07bac272e21b07.zip gdb-bbde7025e0d5629e309c15af5a07bac272e21b07.tar.gz gdb-bbde7025e0d5629e309c15af5a07bac272e21b07.tar.bz2 |
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.
Diffstat (limited to 'gdb/ui-out.h')
0 files changed, 0 insertions, 0 deletions