aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlcachegen/qmlcachegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlcachegen/qmlcachegen.cpp')
-rw-r--r--tools/qmlcachegen/qmlcachegen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp
index cca7abcfe0..d6869ab05b 100644
--- a/tools/qmlcachegen/qmlcachegen.cpp
+++ b/tools/qmlcachegen/qmlcachegen.cpp
@@ -293,6 +293,14 @@ int main(int argc, char **argv)
error.augment(QStringLiteral("Error compiling qml file: ")).print();
return EXIT_FAILURE;
}
+
+ QList<QQmlJS::DiagnosticMessage> warnings = importer.takeGlobalWarnings();
+
+ if (!warnings.isEmpty()) {
+ logger.logWarning(QStringLiteral("Type warnings occurred while compiling file:"),
+ Log_Import);
+ logger.processMessages(warnings, QtWarningMsg, Log_Import);
+ }
}
} else if (inputFile.endsWith(QLatin1String(".js")) || inputFile.endsWith(QLatin1String(".mjs"))) {
QQmlJSCompileError error;