dissector: proto_ipv6: Fix compiler warnings
authorTobias Klauser <tklauser@distanz.ch>
Sun, 11 Aug 2013 12:42:50 +0000 (11 14:42 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Sun, 11 Aug 2013 12:42:50 +0000 (11 14:42 +0200)
Mark unused parameters with __maybe_unused in order to prevent
-Wunused-parameter compiler warnings.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto_ipv6_dest_opts.c
proto_ipv6_hop_by_hop.c
proto_ipv6_mobility_hdr.c
proto_ipv6_no_nxt_hdr.c

index dfdd256..696b6e2 100644 (file)
@@ -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
index b0c5a0d..26f338a 100644 (file)
@@ -21,7 +21,8 @@ struct hop_by_hophdr {
        uint8_t hdr_len;
 } __packed;
 
-static void dissect_opt_hop (struct pkt_buff *pkt, ssize_t *opt_len)
+static void dissect_opt_hop(struct pkt_buff *pkt __maybe_unused,
+                           ssize_t *opt_len)
 {
        /* Have to been upgraded.
         * http://tools.ietf.org/html/rfc2460#section-4.2
index 57e587f..33994e1 100644 (file)
@@ -78,7 +78,7 @@ struct bind_err_msg {
 } __packed;
 
 
-static void dissect_mobility_options(struct pkt_buff *pkt,
+static void dissect_mobility_options(struct pkt_buff *pkt __maybe_unused,
                                     ssize_t *message_data_len)
 {
        /* Have to been upgraded.
index 1988422..c1ef3d0 100644 (file)
@@ -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");
 }