diff options
author | Carlos O'Donell <carlos@redhat.com> | 2016-03-15 23:16:47 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2016-03-15 23:23:24 -0400 |
commit | b4f518ecfad09fc4279ea26a565332835e403dab (patch) | |
tree | 56d39c0f69cafc6afc02cc2e81292d37f69cb0b9 /sysdeps/i386/i686/dl-hash.h | |
parent | 089b772f98afd9eb6264c6489bc96a30bf6af4ac (diff) | |
download | glibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.gz glibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.xz glibc-b4f518ecfad09fc4279ea26a565332835e403dab.zip |
Fix building glibc master with NDEBUG and --with-cpu.
When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu there are various variables and functions which are unused based on these settings. This patch marks all such variables with __attribute__((unused)) to avoid the compiler warnings when building with the aformentioned options.
Diffstat (limited to 'sysdeps/i386/i686/dl-hash.h')
-rw-r--r-- | sysdeps/i386/i686/dl-hash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/dl-hash.h b/sysdeps/i386/i686/dl-hash.h index 8ba85d2a71..dd4458fa89 100644 --- a/sysdeps/i386/i686/dl-hash.h +++ b/sysdeps/i386/i686/dl-hash.h @@ -26,6 +26,7 @@ would be much slower than the generic C implementation. So don't use it. */ static unsigned int +__attribute__ ((unused)) _dl_elf_hash (const char *name) { unsigned int result; |