From 5a2f52289576e98d14374b75e7350e841be92aa3 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 22 Apr 2011 17:17:37 +0000 Subject: [PATCH] Fix compilation on release builds --- src/core/logging.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/logging.h b/src/core/logging.h index 6223b1fa9..80705cb04 100644 --- a/src/core/logging.h +++ b/src/core/logging.h @@ -20,8 +20,12 @@ #include -#define qLog(level) \ - logging::CreateLogger(logging::Level_##level, __PRETTY_FUNCTION__, __LINE__) +#ifdef QT_NO_DEBUG_STREAM +# define qLog(level) while (false) QNoDebug() +#else +# define qLog(level) \ + logging::CreateLogger(logging::Level_##level, __PRETTY_FUNCTION__, __LINE__) +#endif namespace logging { class NullDevice : public QIODevice {