iOS: Use Q_CC_CLANG to determine if we should disable -Wvla-cxx-extension
Pick-to: 6.8 Change-Id: Ic0f460fec800384e4300365f4836f012060bfa55 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 2db64357fa294ab4a445512df2e9c819c80c92a3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0dddac9add
commit
284878b58b
@ -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)];
|
||||
|
Loading…
x
Reference in New Issue
Block a user