From 62b5d0985f042c8939a664240c7e5a5216e745b4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 11 Aug 2013 14:42:50 +0200 Subject: dissector: proto_ipv6: Fix compiler warnings Mark unused parameters with __maybe_unused in order to prevent -Wunused-parameter compiler warnings. Signed-off-by: Tobias Klauser --- proto_ipv6_dest_opts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto_ipv6_dest_opts.c') diff --git a/proto_ipv6_dest_opts.c b/proto_ipv6_dest_opts.c index dfdd256..696b6e2 100644 --- a/proto_ipv6_dest_opts.c +++ b/proto_ipv6_dest_opts.c @@ -22,7 +22,8 @@ struct dest_optshdr { } __packed; -static void dissect_opt_dest(struct pkt_buff *pkt, ssize_t *opt_len) +static void dissect_opt_dest(struct pkt_buff *pkt __maybe_unused, + ssize_t *opt_len) { /* Have to been upgraded. * http://tools.ietf.org/html/rfc2460#section-4.2 -- cgit v1.2.3-54-g00ecf