With my (oldish) gcc I'm seeing
.../binutils/objdump.c: In function \91dump_ctf_indent_lines\92:
.../binutils/objdump.c:3210: error: declaration of \91spaces\92 shadows a global declaration
.../binutils/../include/libiberty.h:253: error: shadowed declaration is here
+2019-06-25 Jan Beulich <jbeulich@suse.com>
+
+ * objdump.c (dump_ctf_indent_lines): Rename local variable
+ "spaces" to "blanks".
+
2019-06-14 Alan Modra <amodra@gmail.com>
* Makefile.in: Regenerate.
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;
}