aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2019-06-25 11:08:53 +0200
committerJan Beulich <jbeulich@suse.com>2019-06-25 11:08:53 +0200
commit63160fc99678fd85311ad5c89494164e6f8439d7 (patch)
tree864cc7f1522dde4179a938d527753d877b2bb531 /binutils/objdump.c
parent2c70385689542a4c4cbe160601e54f9f18a4c4c5 (diff)
downloadgdb-63160fc99678fd85311ad5c89494164e6f8439d7.zip
gdb-63160fc99678fd85311ad5c89494164e6f8439d7.tar.gz
gdb-63160fc99678fd85311ad5c89494164e6f8439d7.tar.bz2
objdump: avoid shadowing a libiberty symbol
With my (oldish) gcc I'm seeing .../binutils/objdump.c: In function ‘dump_ctf_indent_lines’: .../binutils/objdump.c:3210: error: declaration of ‘spaces’ shadows a global declaration .../binutils/../include/libiberty.h:253: error: shadowed declaration is here
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index d9c8cea..7a4e7e4 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -3207,10 +3207,10 @@ static char *
dump_ctf_indent_lines (ctf_sect_names_t sect ATTRIBUTE_UNUSED,
char *s, void *arg)
{
- char *spaces = arg;
+ const char *blanks = arg;
char *new_s;
- if (asprintf (&new_s, "%s%s", spaces, s) < 0)
+ if (asprintf (&new_s, "%s%s", blanks, s) < 0)
return s;
return new_s;
}