aboutsummaryrefslogtreecommitdiff
path: root/misc
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 /misc
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'.
Diffstat (limited to 'misc')
-rw-r--r--misc/getauxval.c2
1 files changed, 2 insertions, 0 deletions
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);