iOS: Use Q_CC_CLANG to determine if we should disable -Wvla-cxx-extension

Pick-to: 6.9 6.8
Change-Id: Ic0f460fec800384e4300365f4836f012060bfa55
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-05-02 12:14:43 +02:00
parent a3b24c2842
commit 2db64357fa

View File

@ -196,8 +196,9 @@ extern "C" int qt_main_wrapper(int argc, char *argv[])
requestedStackSize = 0;
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wunknown-warning-option")
#if Q_CC_CLANG >= 1800
QT_WARNING_DISABLE_CLANG("-Wvla-cxx-extension")
#endif
// The user-main stack _must_ live on the stack, so that the stack pointer
// during user-main is within pthread_get_stackaddr_np/pthread_get_stacksize_np.
char reservedStack[Stack::computeSize(requestedStackSize)];