From f321e02ac398ae92a5e5431c8ca915dd757d2986 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 27 Apr 2016 09:42:21 +0200 Subject: flowtop: Mark parameter in callback function as unused Mark the nf_conntrack_msg_type parameter to flow_dump_cb with __maybe_unused to prevent a warning when compiling with -Wunused-parameter. Signed-off-by: Tobias Klauser --- flowtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flowtop.c') diff --git a/flowtop.c b/flowtop.c index b2f67ea..405bfd8 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1533,7 +1533,7 @@ static void collector_create_filter(struct nfct_handle *nfct) /* This hand-crafted filter looks ugly but it allows to do not * flush nfct connections & filter them by user specified filter. * May be it is better to replace this one by nfct_cmp. */ -static int flow_dump_cb(enum nf_conntrack_msg_type type, +static int flow_dump_cb(enum nf_conntrack_msg_type type __maybe_unused, struct nf_conntrack *ct, void *data __maybe_unused) { struct flow_entry fl; -- cgit v1.2.3-54-g00ecf