From cd53feb1934352f571d0b3c411d9c9e8ca99c6c4 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 4 Aug 2015 20:36:39 -0700 Subject: [PATCH] Log DEBUG() macros: avoid spurious warnings in release builds. --- src/Log.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Log.h b/src/Log.h index d42b6f5e8f..0429aa993e 100644 --- a/src/Log.h +++ b/src/Log.h @@ -66,11 +66,11 @@ class Logger { #define INFO(x) LOG(NT_LOG_INFO, x) #ifdef NDEBUG -#define DEBUG(x) -#define DEBUG1(x) -#define DEBUG2(x) -#define DEBUG3(x) -#define DEBUG4(x) +#define DEBUG(x) do {} while (0) +#define DEBUG1(x) do {} while (0) +#define DEBUG2(x) do {} while (0) +#define DEBUG3(x) do {} while (0) +#define DEBUG4(x) do {} while (0) #else #define DEBUG(x) LOG(NT_LOG_DEBUG, x) #define DEBUG1(x) LOG(NT_LOG_DEBUG1, x)