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_eth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dissector_eth.c') 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 { -- cgit v1.2.3-54-g00ecf