From: Thomas Monjalon Date: Fri, 27 Apr 2018 00:54:00 +0000 (+0200) Subject: eal: fix build with glibc < 2.16 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8ddd6a90ea3cbd3724191984039c71de8b58d41b;p=dpdk.git eal: fix build with glibc < 2.16 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 Acked-by: Maxime Coquelin --- diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/common/eal_common_cpuflags.c index a09667563e..6a9dbaeb1f 100644 --- a/lib/librte_eal/common/eal_common_cpuflags.c +++ b/lib/librte_eal/common/eal_common_cpuflags.c @@ -22,7 +22,7 @@ #ifndef HAS_AUXV static unsigned long -getauxval(unsigned long type) +getauxval(unsigned long type __rte_unused) { errno = ENOTSUP; return 0;