diff options
-rw-r--r-- | dissector_80211.c | 6 | ||||
-rw-r--r-- | dissector_eth.c | 8 | ||||
-rw-r--r-- | proto_none.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/dissector_80211.c b/dissector_80211.c index f39a8a2..472a44d 100644 --- a/dissector_80211.c +++ b/dissector_80211.c @@ -34,9 +34,9 @@ static void dissector_init_layer_2(int type) for_each_hash_int(&ieee80211_lay2, dissector_set_print_type, type); } #else -static inline void dissector_init_entry(int type) {} -static inline void dissector_init_exit(int type) {} -static void dissector_init_layer_2(int type) {} +static inline void dissector_init_entry(int type __maybe_unused) {} +static inline void dissector_init_exit(int type __maybe_unused) {} +static void dissector_init_layer_2(int type __maybe_unused) {} #endif void dissector_init_ieee80211(int fnttype) diff --git a/dissector_eth.c b/dissector_eth.c index c700943..b87c957 100644 --- a/dissector_eth.c +++ b/dissector_eth.c @@ -97,10 +97,10 @@ static void dissector_init_layer_3(int type) for_each_hash_int(ð_lay3, dissector_set_print_type, type); } #else -static inline void dissector_init_entry(int type) {} -static inline void dissector_init_exit(int type) {} -static void dissector_init_layer_2(int type) {} -static void dissector_init_layer_3(int type) {} +static inline void dissector_init_entry(int type __maybe_unused) {} +static inline void dissector_init_exit(int type __maybe_unused) {} +static void dissector_init_layer_2(int type __maybe_unused) {} +static void dissector_init_layer_3(int type __maybe_unused) {} #endif enum ports { diff --git a/proto_none.c b/proto_none.c index 2320625..0c0f62a 100644 --- a/proto_none.c +++ b/proto_none.c @@ -12,7 +12,7 @@ #include "protos.h" #include "pkt_buff.h" -void empty(struct pkt_buff *pkt) {} +void empty(struct pkt_buff *pkt __maybe_unused) {} static void _hex(uint8_t *ptr, size_t len) { @@ -71,7 +71,7 @@ void hex_ascii(struct pkt_buff *pkt) tprintf("\n"); } -static void none_less(struct pkt_buff *pkt) +static void none_less(struct pkt_buff *pkt __maybe_unused) { tprintf("\n"); } |