summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/global/qassert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qassert.h b/src/corelib/global/qassert.h
index 388932a8f7f..bfdd69815a3 100644
--- a/src/corelib/global/qassert.h
+++ b/src/corelib/global/qassert.h
@@ -41,7 +41,7 @@ void qt_assert_x(const char *where, const char *what, const char *file, int line
#if !defined(Q_ASSERT_X)
# if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
-# define Q_ASSERT_X(cond, where, what) static_cast<void>(false && (cond))
+# define Q_ASSERT_X(cond, where, what) static_cast<void>(false && (cond) && (where) && (what))
# else
# define Q_ASSERT_X(cond, where, what) ((cond) ? static_cast<void>(0) : qt_assert_x(where, what, __FILE__, __LINE__))
# endif