From 0d7d668b255605b753ac12e9f457a56004fee114 Mon Sep 17 00:00:00 2001 From: Tarunik <3720508+tarunik@users.noreply.github.com> Date: Mon, 5 Oct 2020 20:24:04 -0500 Subject: [PATCH] Stop LogTrace() from emitting a compiler warning when called with a plain string. --- log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.h b/log.h index 63478be..c408319 100644 --- a/log.h +++ b/log.h @@ -197,9 +197,9 @@ bool ParseLoggerArguments( ///Helper for logging "trace" messages with the function name prepended to the message #ifdef __GNUC__ -#define LogTrace(fmt, ...) LogDebugTrace(__PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) +#define LogTrace(...) LogDebugTrace(__PRETTY_FUNCTION__, ##__VA_ARGS__) #else -#define LogTrace(fmt, ...) LogDebugTrace(__func__, fmt, __VA_ARGS__) +#define LogTrace(...) LogDebugTrace(__func__, __VA_ARGS__) #endif ATTR_FORMAT(1, 2) void LogVerbose(const char *format, ...);