diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-04-27 09:42:21 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-27 09:42:21 +0200 |
commit | f321e02ac398ae92a5e5431c8ca915dd757d2986 (patch) | |
tree | e3a0771dd3ca822c80f7f529036ad05db584cf22 | |
parent | 4112e4fa36563699611c95d7a39664bcfa46a9b1 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |