From d9fccab98e359b2b7a011a31daa29affcb0b8935 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 23 Apr 2017 23:02:33 +0200 Subject: [PATCH] Remove warning about unused variables. --- m-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index b227cef7..da1ff634 100644 --- a/m-core.h +++ b/m-core.h @@ -821,7 +821,7 @@ m_core_hash (const void *str, size_t length) /* Define the default method. */ #define M_INIT_DEFAULT(a) ((a) = 0) #define M_SET_DEFAULT(a,b) ((a) = (b)) -#define M_NOTHING_DEFAULT(...) (void)1 +#define M_NOTHING_DEFAULT(...) ((void)(__VA_ARGS__)) #define M_TRUE_DEFAULT(...) true #define M_NEW_DEFAULT(a) M_MEMORY_ALLOC(a) #define M_DEL_DEFAULT(a) M_MEMORY_DEL(a)