eal: fix build with glibc < 2.16
authorThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 00:54:00 +0000 (02:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 09:12:53 +0000 (11:12 +0200)
The fake getauxval function does not use its parameter.
So the compiler raised this error:
lib/librte_eal/common/eal_common_cpuflags.c:25:25: error:
unused parameter 'type'

Fixes: 2ed9bf330709 ("eal: abstract away the auxiliary vector")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/common/eal_common_cpuflags.c

index a096675..6a9dbae 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef HAS_AUXV
 static unsigned long
-getauxval(unsigned long type)
+getauxval(unsigned long type __rte_unused)
 {
        errno = ENOTSUP;
        return 0;