Log DEBUG() macros: avoid spurious warnings in release builds.

This commit is contained in:
Peter Johnson
2015-08-04 20:36:39 -07:00
parent 00feb67064
commit cd53feb193

View File

@@ -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)