From aa5b68e09ea9032f17c9fb02f6716c78525b80ca Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 25 Sep 2026 15:35:55 +0200 Subject: QV4::Moth: suppress -Wframe-larger-than in dumpBytecode() The code uses computed goto and other such weirdness, so it's unclear how it can be shrunk. Suppress the warning, to be able to make progress on the rest of Qt. Pick-to: 6.12 6.8 Change-Id: Ibaefc299cca9a22a02e92c65087c2053a8aaecae Reviewed-by: Ulf Hermann --- src/qml/compiler/qv4instr_moth.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index 4ccdec190e..55cb891992 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -112,6 +112,8 @@ QString dumpBytecode( return dumpBytecode(code, len, nLocals, nFormals, 0, len - 1, lineAndStatementNumberMapping); } +QT_WARNING_PUSH +QT_WARNING_DISABLE_LARGE_STACK_FRAME // unclear how this can be shrunk... QString dumpBytecode( const char *code, int len, int nLocals, int nFormals, int beginOffset, int endOffset, const QList &lineAndStatementNumberMapping) @@ -668,6 +670,7 @@ QString dumpBytecode( } return output; } +QT_WARNING_POP // DISABLE_LARGE_STACK_FRAME } } -- cgit v1.2.3