aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2026-09-25 15:35:55 +0200
committerMarc Mutz <marc.mutz@qt.io>2026-09-29 16:31:21 +0000
commitaa5b68e09ea9032f17c9fb02f6716c78525b80ca (patch)
treea564241af50b67bbba5a83426ae067c3f2101914
parentf6940d5102253ea992bdb457843e08dbe3f947dd (diff)
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 <ulf.hermann@qt.io>
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp3
1 files changed, 3 insertions, 0 deletions
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<CompiledData::CodeOffsetToLineAndStatement> &lineAndStatementNumberMapping)
@@ -668,6 +670,7 @@ QString dumpBytecode(
}
return output;
}
+QT_WARNING_POP // DISABLE_LARGE_STACK_FRAME
}
}