Old enough glibc has an (unguarded) declaration of index() in string.h,
which triggers a "shadows a global declaration" warning.
+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.
}
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. */