From 94c5707f2e6c26e199f9755a38e23214f86c09c7 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 2 Jun 2018 01:52:11 +0100 Subject: [PATCH] Old clang doesn't understand 2-arg deprecation --- include/znc/Message.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/znc/Message.h b/include/znc/Message.h index 02305859..1981d312 100644 --- a/include/znc/Message.h +++ b/include/znc/Message.h @@ -31,11 +31,9 @@ #endif #ifdef SWIG -#define ZNC_MSG_DEPRECATED(msg, repl) -#elif defined(__clang__) -#define ZNC_MSG_DEPRECATED(msg, repl) __attribute__((deprecated(msg, repl))) +#define ZNC_MSG_DEPRECATED(msg) #else -#define ZNC_MSG_DEPRECATED(msg, repl) __attribute__((deprecated(msg))) +#define ZNC_MSG_DEPRECATED(msg) __attribute__((deprecated(msg))) #endif #include @@ -127,7 +125,7 @@ class CMessage { /// @deprecated use GetParamsColon() instead. CString GetParams(unsigned int uIdx, unsigned int uLen = -1) const - ZNC_MSG_DEPRECATED("Use GetParamsColon() instead", "GetParamsColon") { + ZNC_MSG_DEPRECATED("Use GetParamsColon() instead") { return GetParamsColon(uIdx, uLen); } CString GetParamsColon(unsigned int uIdx, unsigned int uLen = -1) const;