aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-10 22:45:18 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-10 22:45:18 +0200
commit352db0bd059df1ad2da5d22e6ea3fd3e4f2ce236 (patch)
treec341699b88f67351516fffca1b1e13281171e018
parent3f413ec8d1aaa338946215f2510369f5e3d891eb (diff)
downloadglibc-352db0bd059df1ad2da5d22e6ea3fd3e4f2ce236.zip
glibc-352db0bd059df1ad2da5d22e6ea3fd3e4f2ce236.tar.gz
glibc-352db0bd059df1ad2da5d22e6ea3fd3e4f2ce236.tar.bz2
hurd: Fix unused variable warning
* misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define unused variable 'p'.
-rw-r--r--ChangeLog5
-rw-r--r--misc/getauxval.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 09e0485..2590895 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
+ unused variable 'p'.
+
2016-10-09 Alan Modra <amodra@gmail.com>
Andreas Schwab <schwab@linux-m68k.org>
diff --git a/misc/getauxval.c b/misc/getauxval.c
index 6111376..27f4be9 100644
--- a/misc/getauxval.c
+++ b/misc/getauxval.c
@@ -23,7 +23,9 @@
unsigned long int
__getauxval (unsigned long int type)
{
+#ifdef HAVE_AUX_VECTOR
ElfW(auxv_t) *p;
+#endif
if (type == AT_HWCAP)
return GLRO(dl_hwcap);