mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-25 14:01:00 +08:00
readelf: avoid shadowing a libiberty symbol
With my (oldish) gcc I'm seeing .../binutils/readelf.c: In function dump_ctf_indent_lines: .../binutils/readelf.c:13851: error: declaration of spaces shadows a global declaration .../binutils/../include/libiberty.h:253: error: shadowed declaration is here
This commit is contained in:
parent
63160fc996
commit
3e50a591d9
@ -1,3 +1,8 @@
|
||||
2019-06-25 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* readelf.c (dump_ctf_indent_lines): Rename local variable
|
||||
"spaces" to "blanks".
|
||||
|
||||
2019-06-25 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* objdump.c (dump_ctf_indent_lines): Rename local variable
|
||||
|
@ -13848,10 +13848,10 @@ shdr_to_ctf_sect (ctf_sect_t *buf, Elf_Internal_Shdr *shdr, Filedata *filedata)
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user