bfd: avoid "shadowing" of glibc function name
Old enough glibc has an (unguarded) declaration of index() in string.h, which triggers a "shadows a global declaration" warning.
This commit is contained in:
parent
12af5ebd82
commit
f596b03f55
@ -1,3 +1,7 @@
|
||||
2021-03-23 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* dwarf2.c (read_indexed_string): Rename index to idx.
|
||||
|
||||
2021-03-22 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* bfd-in.h (startswith): Add startswith function.
|
||||
|
@ -1172,7 +1172,7 @@ is_str_attr (enum dwarf_form form)
|
||||
}
|
||||
|
||||
static const char *
|
||||
read_indexed_string (bfd_uint64_t index ATTRIBUTE_UNUSED,
|
||||
read_indexed_string (bfd_uint64_t idx ATTRIBUTE_UNUSED,
|
||||
struct comp_unit * unit ATTRIBUTE_UNUSED)
|
||||
{
|
||||
/* FIXME: Add support for indexed strings. */
|
||||
|
Loading…
Reference in New Issue
Block a user