hurd: Fix unused variable warning

* misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
	unused variable 'p'.
This commit is contained in:
Samuel Thibault 2016-10-10 22:45:18 +02:00
parent 3f413ec8d1
commit 352db0bd05
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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);