From 85a89208ca0fc5b056b98bf79882929fb69d3913 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Sun, 1 May 2011 21:08:53 +0200 Subject: linuxlist.h: silence a noisy warning Fixes a couple of warnings like this: In file included from ../../shared/libosmocore/include/osmocom/core/msgb.h:24:0, from include/comm/sercomm.h:6, from apps/loader/main.c:41: ../../shared/libosmocore/include/osmocom/core/linuxlist.h: In function 'prefetch': ../../shared/libosmocore/include/osmocom/core/linuxlist.h:10:41: warning: unused parameter 'x' Signed-off-by: Wolfram Sang --- src/shared/libosmocore/include/osmocom/core/linuxlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/libosmocore/include/osmocom/core/linuxlist.h b/src/shared/libosmocore/include/osmocom/core/linuxlist.h index fb99c5ec..ff2c4915 100644 --- a/src/shared/libosmocore/include/osmocom/core/linuxlist.h +++ b/src/shared/libosmocore/include/osmocom/core/linuxlist.h @@ -7,7 +7,7 @@ #define inline __inline__ #endif -static inline void prefetch(const void *x) {;} +static inline void prefetch(__attribute__((unused)) const void *x) {;} /** * container_of - cast a member of a structure out to the containing structure -- cgit v1.2.3