diff options
author | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-08-21 14:44:58 +0200 |
---|---|---|
committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-08-23 15:30:11 +0200 |
commit | 526cef4d2c4d88798ea76e0d0e589943c5792711 (patch) | |
tree | ce6d190b62007ec4ff956d0a9c8b2dd2cac3aae3 /src/qml/memory | |
parent | 7cb7f6ab7f6fe91bee674085c6c198ed00fc376a (diff) |
Warnings: Suppress MinGW warning about out of bounds array access
Fixes: QTBUG-116179
Change-Id: Ib32877fde13084a35c894aa2f00f2500b9ba7937
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/memory')
-rw-r--r-- | src/qml/memory/qv4stacklimits.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/memory/qv4stacklimits.cpp b/src/qml/memory/qv4stacklimits.cpp index b8e7e38b92..d610780e39 100644 --- a/src/qml/memory/qv4stacklimits.cpp +++ b/src/qml/memory/qv4stacklimits.cpp @@ -147,12 +147,19 @@ StackProperties stackProperties() static_assert(Q_STACK_GROWTH_DIRECTION < 0); StackProperties stackProperties() { + // MinGW complains about out of bounds array access in compiler headers + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Warray-bounds") + // Get the stack base. # ifdef _WIN64 PNT_TIB64 pTib = reinterpret_cast<PNT_TIB64>(NtCurrentTeb()); # else PNT_TIB pTib = reinterpret_cast<PNT_TIB>(NtCurrentTeb()); # endif + + QT_WARNING_POP + quint8 *stackBase = reinterpret_cast<quint8 *>(pTib->StackBase); // Get the stack limit. tib->StackLimit is the size of the |