summaryrefslogtreecommitdiff
path: root/proto_ipv6_no_nxt_hdr.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-08-11 14:42:50 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-08-11 14:42:50 +0200
commit62b5d0985f042c8939a664240c7e5a5216e745b4 (patch)
treeab7363a79f696b7975c62f95f3ed0b7ecdaccda4 /proto_ipv6_no_nxt_hdr.c
parent93b19b3f28c37fe7d0c5bbd5a927fb4cff69ce31 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'proto_ipv6_no_nxt_hdr.c')
-rw-r--r--proto_ipv6_no_nxt_hdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_ipv6_no_nxt_hdr.c b/proto_ipv6_no_nxt_hdr.c
index 1988422..c1ef3d0 100644
--- a/proto_ipv6_no_nxt_hdr.c
+++ b/proto_ipv6_no_nxt_hdr.c
@@ -15,7 +15,7 @@
#include "dissector_eth.h"
#include "built_in.h"
-static void no_next_header(struct pkt_buff *pkt)
+static void no_next_header(struct pkt_buff *pkt __maybe_unused)
{
/*
* The value 59 in the Next Header field of an IPv6 header or any
@@ -29,7 +29,7 @@ static void no_next_header(struct pkt_buff *pkt)
tprintf(" ]\n");
}
-static void no_next_header_less(struct pkt_buff *pkt)
+static void no_next_header_less(struct pkt_buff *pkt __maybe_unused)
{
tprintf(" No Next Header");
}