From cabf2bedace69096dc6b134e0add5792671a13c6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 14 Jul 2013 14:21:32 +0200 Subject: flowtop: Mark unused parameters with __maybe_unused In order to avoid compiler warnings when compiling with -W/-Wunused-parameter, mark unused function parameters with __maybe_unused. Signed-off-by: Tobias Klauser --- flowtop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flowtop.c') diff --git a/flowtop.c b/flowtop.c index 3e55079..884acd1 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1015,7 +1015,7 @@ static void presenter(void) } static int collector_cb(enum nf_conntrack_msg_type type, - struct nf_conntrack *ct, void *data) + struct nf_conntrack *ct, void *data __maybe_unused) { if (sigint) return NFCT_CB_STOP; @@ -1047,7 +1047,7 @@ static inline void collector_flush(struct nfct_handle *handle, uint8_t family) nfct_query(handle, NFCT_Q_FLUSH, &family); } -static void *collector(void *null) +static void *collector(void *null __maybe_unused) { int ret; struct nfct_handle *handle; -- cgit v1.2.3-54-g00ecf