about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--misc/getauxval.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 09e048541f..2590895834 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 61113766da..27f4be9d8b 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);