diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 16:45:05 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 16:46:15 +0200 |
commit | 3fb9ca90bffa92e5c5399440994170c4b8cb96f1 (patch) | |
tree | 00ff7762ea6cb3dffea46b4af71d142b8049e7c4 /proto_none.c | |
parent | dbc15575a7e0ab843931643c573404081cd3582c (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 'proto_none.c')
-rw-r--r-- | proto_none.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |