Remove the use of the register keyword in the libiberty.h header file - it is deprecated and incompatible with C++17.

* libiberty.h (bsearch_r): Remove use of the register keyword from
	the prototype.
This commit is contained in:
Nick Clifton 2020-06-25 11:16:42 +01:00
parent b59d128a11
commit 6248d9d647
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2020-06-25 Nick Clifton <nickc@redhat.com>
* libiberty.h (bsearch_r): Remove use of the register keyword from
the prototype.
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
Sync with GCC

View File

@ -643,9 +643,9 @@ extern int pwait (int, int *, int);
/* Like bsearch, but takes and passes on an argument like qsort_r. */
extern void *bsearch_r (register const void *, const void *,
size_t, register size_t,
register int (*)(const void *, const void *, void *),
extern void *bsearch_r (const void *, const void *,
size_t, size_t,
int (*)(const void *, const void *, void *),
void *);
#if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF