aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier De Cannière <[email protected]>2025-12-01 16:04:17 +0100
committerOlivier De Cannière <[email protected]>2025-12-04 21:01:18 +0100
commitfe9e37df4725b5e651af46479d89320e19e5d311 (patch)
tree2d49552a940a26ae80013b152570fd57ca74f88c /src
parenteca0abef40613afa19737ffd1c7da6f53971585a (diff)
Compiler: Remove outdated warning suppression for MSVC 2019
We no longer support it. Change-Id: I4244f251f4fb8f3b2d93d1d0a12bc4bba68b931e Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/qmlcompiler/qqmljscompiler.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp
index 14ecd52610..916f30b125 100644
--- a/src/qmlcompiler/qqmljscompiler.cpp
+++ b/src/qmlcompiler/qqmljscompiler.cpp
@@ -558,14 +558,6 @@ bool qSaveQmlJSUnitAsCpp(const QString &inputFileName, const QString &outputFile
if (!writeStr("};\n"))
return false;
- // Suppress the following warning generated by MSVC 2019:
- // "the usage of 'QJSNumberCoercion::toInteger' requires the compiler to capture 'this'
- // but the current default capture mode does not allow it"
- // You clearly don't have to capture 'this' in order to call 'QJSNumberCoercion::toInteger'.
- // TODO: Remove when we don't have to support MSVC 2019 anymore. Mind the QT_WARNING_POP below.
- if (!writeStr("QT_WARNING_PUSH\nQT_WARNING_DISABLE_MSVC(4573)\n"))
- return false;
-
writeStr(aotFunctions[FileScopeCodeIndex].code.toUtf8().constData());
if (aotFunctions.size() <= 1) {
// FileScopeCodeIndex is always there, but it may be the only one.
@@ -599,9 +591,6 @@ bool qSaveQmlJSUnitAsCpp(const QString &inputFileName, const QString &outputFile
writeStr("};\n");
}
- if (!writeStr("QT_WARNING_POP\n"))
- return false;
-
if (!writeStr("}\n}\n"))
return false;