Skip to content

Commit

Permalink
QgsDebugXXX macros: expand them do a dummy statement instead of an em…
Browse files Browse the repository at this point in the history
…pty one to avoid compiler warnings in non-debug mode
  • Loading branch information
rouault authored and nyalldawson committed Jun 13, 2020
1 parent 147d873 commit 5dcb476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgslogger.h
Expand Up @@ -34,9 +34,9 @@ class QFile;
#define QgsDebugMsgLevel(str, level) if ( level <= QgsLogger::debugLevel() ) { QgsLogger::debug(QString(str), (level), __FILE__, __FUNCTION__, __LINE__); }(void)(0)
#define QgsDebugCall QgsScopeLogger _qgsScopeLogger(__FILE__, __FUNCTION__, __LINE__)
#else
#define QgsDebugCall
#define QgsDebugMsg(str)
#define QgsDebugMsgLevel(str, level)
#define QgsDebugCall do {} while(false)
#define QgsDebugMsg(str) do {} while(false)
#define QgsDebugMsgLevel(str, level) do {} while(false)
#endif

/**
Expand Down

0 comments on commit 5dcb476

Please sign in to comment.