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(false && (cond)) +# define Q_ASSERT_X(cond, where, what) static_cast(false && (cond) && (where) && (what)) # else # define Q_ASSERT_X(cond, where, what) ((cond) ? static_cast(0) : qt_assert_x(where, what, __FILE__, __LINE__)) # endif