summaryrefslogtreecommitdiff
path: root/dissector_eth.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-13 16:45:05 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-13 16:46:15 +0200
commit3fb9ca90bffa92e5c5399440994170c4b8cb96f1 (patch)
tree00ff7762ea6cb3dffea46b4af71d142b8049e7c4 /dissector_eth.c
parentdbc15575a7e0ab843931643c573404081cd3582c (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'dissector_eth.c')
-rw-r--r--dissector_eth.c8
1 files changed, 4 insertions, 4 deletions
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(&eth_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 {