From 3fb9ca90bffa92e5c5399440994170c4b8cb96f1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 13 Jul 2013 16:45:05 +0200 Subject: dissector: Mark unused parameters with __maybe_unused In order to avoid compiler warnings when compiling with -W/-Wunused-parameter, mark unused function parameters with __maybe_unused. Signed-off-by: Tobias Klauser --- dissector_80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dissector_80211.c') 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) -- cgit v1.2.3-54-g00ecf