summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-27 09:42:21 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-27 09:42:21 +0200
commitf321e02ac398ae92a5e5431c8ca915dd757d2986 (patch)
treee3a0771dd3ca822c80f7f529036ad05db584cf22
parent4112e4fa36563699611c95d7a39664bcfa46a9b1 (diff)
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 <tklauser@distanz.ch>
-rw-r--r--flowtop.c2
1 files changed, 1 insertions, 1 deletions
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;