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 <wolfram@the-dreams.de>
This commit is contained in:
Wolfram Sang 2011-05-01 21:08:53 +02:00 committed by Harald Welte
parent b17fe4d0a1
commit 85a89208ca
1 changed files with 1 additions and 1 deletions

View File

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