summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-07 07:45:21 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-10-07 10:44:41 (GMT)
commitba5109e94d35a8c58fc4a4f412a3368bfa8851cc (patch)
tree210d6dbcf76c954da871ebee8f6963aaea230d36 /src/corelib/global/qglobal.h
parent41a47906475f3970bd662c3d24e7e642ea65a191 (diff)
downloadQt-ba5109e94d35a8c58fc4a4f412a3368bfa8851cc.zip
Qt-ba5109e94d35a8c58fc4a4f412a3368bfa8851cc.tar.gz
Qt-ba5109e94d35a8c58fc4a4f412a3368bfa8851cc.tar.bz2
Fixing more GCC warnings
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'src/corelib/global/qglobal.h')
-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 5720505..df17546 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 while (false) 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 while (false) qWarning
#ifdef QT_NO_WARNING_OUTPUT
# define qWarning QT_NO_QWARNING_MACRO
#endif