Windows: Fix qAbort() definition for MSVC with unity build

src\corelib\global\qglobal_p.h(57): error C2381: 'qAbort': redefinition; 'noreturn' differs
src/corelib/global/qassert.cpp(24): note: see declaration of 'qAbort'

The error started after 1ef5f50e, when unity build source files changed.

Change-Id: Id90ee20976423b9ae6ec691ee15602256f7c1fe9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Nodir Temirkhodjaev 2024-07-12 16:02:19 +05:00
parent b12542c964
commit 23877db563

View File

@ -21,7 +21,7 @@
QT_BEGIN_NAMESPACE
void qAbort()
Q_NORETURN void qAbort()
{
#ifdef Q_OS_WIN
// std::abort() in the MSVC runtime will call _exit(3) if the abort