From 2f39bd33c32ffcb6624bb3ccd0cff5af4bc2bf8a Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 27 Feb 2018 05:27:13 +0000 Subject: Add default stderr logger for logging to nullptr. This is useful for debugging a function that doesn't have a logger available. It should not be used in production code, since it outputs to stderr. --- toxcore/ccompat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/ccompat.h') diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index 1ceb5a5a..b70850d2 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h @@ -43,9 +43,9 @@ #endif #ifdef __GNUC__ -#define GNU_PRINTF __attribute__((__format__(__printf__, 6, 7))) +#define GNU_PRINTF(f, a) __attribute__((__format__(__printf__, f, a))) #else -#define GNU_PRINTF +#define GNU_PRINTF(f, a) #endif #endif /* CCOMPAT_H */ -- cgit v1.2.3