aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-23 08:42:58 +0100
committerJan Beulich <jbeulich@suse.com>2021-03-23 08:42:58 +0100
commitf596b03f555fa4e473bd3fbeb0d7b6662883485b (patch)
tree720f311bbd2634568820155d4b466dbc58c0c303 /bfd
parent12af5ebd820425e8ad843a1dac687a2fffc4a2e3 (diff)
downloadgdb-f596b03f555fa4e473bd3fbeb0d7b6662883485b.zip
gdb-f596b03f555fa4e473bd3fbeb0d7b6662883485b.tar.gz
gdb-f596b03f555fa4e473bd3fbeb0d7b6662883485b.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/dwarf2.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c4172eb..3245f8c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 9f895b1..dbaec40 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -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. */