summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-10-01 14:09:41 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-10-01 14:09:41 (GMT)
commit47fa47c8fe7af6d3184bb634f96bc552fff3c620 (patch)
tree998c4bf942c805e50d7ac3497c0808adba1516f2
parent8d920689a704be771488d2aae61b69077a7a491f (diff)
downloadQt-47fa47c8fe7af6d3184bb634f96bc552fff3c620.zip
Qt-47fa47c8fe7af6d3184bb634f96bc552fff3c620.tar.gz
Qt-47fa47c8fe7af6d3184bb634f96bc552fff3c620.tar.bz2
Use "if (1) {} else" instead of "if (1); else" to silence compiler.
Rev-by: Thiago
-rw-r--r--src/corelib/global/qglobal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 7fe67ec..dcd4397 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1615,11 +1615,11 @@ Q_CORE_EXPORT_INLINE QDebug qCritical();
inline QNoDebug qDebug();
#endif
-#define QT_NO_QDEBUG_MACRO if(1); else qDebug
+#define QT_NO_QDEBUG_MACRO if(1) {} else qDebug
#ifdef QT_NO_DEBUG_OUTPUT
# define qDebug QT_NO_QDEBUG_MACRO
#endif
-#define QT_NO_QWARNING_MACRO if(1); else qWarning
+#define QT_NO_QWARNING_MACRO if(1) {} else qWarning
#ifdef QT_NO_WARNING_OUTPUT
# define qWarning QT_NO_QWARNING_MACRO
#endif