From 352db0bd059df1ad2da5d22e6ea3fd3e4f2ce236 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 10 Oct 2016 22:45:18 +0200 Subject: hurd: Fix unused variable warning * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define unused variable 'p'. --- misc/getauxval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc/getauxval.c') 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); -- cgit v1.1