aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljscodegenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljscodegenerator.cpp')
-rw-r--r--src/qmlcompiler/qqmljscodegenerator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljscodegenerator.cpp b/src/qmlcompiler/qqmljscodegenerator.cpp
index 7a87bd952b..f6cf2f45ae 100644
--- a/src/qmlcompiler/qqmljscodegenerator.cpp
+++ b/src/qmlcompiler/qqmljscodegenerator.cpp
@@ -120,6 +120,8 @@ QQmlJSAotFunction QQmlJSCodeGenerator::run(
}
};
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wrange-loop-analysis")
for (const auto &annotation : *m_annotations) {
addVariable(annotation.second.changedRegisterIndex,
annotation.second.changedRegister.storedType());
@@ -129,6 +131,7 @@ QQmlJSAotFunction QQmlJSCodeGenerator::run(
addVariable(it.key(), it.value().storedType());
}
}
+QT_WARNING_POP
// ensure we have m_labels for loops
for (const auto loopLabel : m_context->labelInfo)