From 8d4b974dda5f9245ceac981338537e1ee0d494ff Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 29 Jun 2015 14:02:11 +0200 Subject: [PATCH] Added UNUSED macro to silnce unused-parameter warnings --- src/utils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.h b/src/utils.h index c3364ced..ef380bcb 100644 --- a/src/utils.h +++ b/src/utils.h @@ -21,6 +21,8 @@ #ifndef __TINC_UTILS_H__ #define __TINC_UTILS_H__ +#define UNUSED(x) (void)(x) + extern int hex2bin(const char *src, void *dst, int length); extern int bin2hex(const void *src, char *dst, int length);