From 90cfc2f7e85914f51e38e698d6636b10302e54ad Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 27 Jun 2023 14:57:12 +0200 Subject: [PATCH] QmlDesigner: Fix warnings Change-Id: I2b9c2d024b1c09c157e448f590e2748337cbeb89 Reviewed-by: Tim Jenssen --- .../qml2puppet/qml2puppet/instances/qt5nodeinstanceserver.cpp | 2 +- tests/unit/tests/mocks/projectstoragemock.cpp | 2 +- .../unit/tests/unittests/model/modelresourcemanagement-test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/qml2puppet/qml2puppet/instances/qt5nodeinstanceserver.cpp b/src/tools/qml2puppet/qml2puppet/instances/qt5nodeinstanceserver.cpp index a696fd45cea..e520079a5d1 100644 --- a/src/tools/qml2puppet/qml2puppet/instances/qt5nodeinstanceserver.cpp +++ b/src/tools/qml2puppet/qml2puppet/instances/qt5nodeinstanceserver.cpp @@ -248,7 +248,7 @@ void Qt5NodeInstanceServer::savePipelineCacheData() #endif } -void Qt5NodeInstanceServer::setPipelineCacheConfig(QQuickWindow *w) +void Qt5NodeInstanceServer::setPipelineCacheConfig([[maybe_unused]] QQuickWindow *w) { #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 1) // This dummy file is not actually used for cache as we manage cache save/load ourselves, diff --git a/tests/unit/tests/mocks/projectstoragemock.cpp b/tests/unit/tests/mocks/projectstoragemock.cpp index 37384e48507..2c3a4a622ff 100644 --- a/tests/unit/tests/mocks/projectstoragemock.cpp +++ b/tests/unit/tests/mocks/projectstoragemock.cpp @@ -164,7 +164,7 @@ void ProjectStorageMock::setupQtQtuick() auto qtQuickModuleId = createModule("QtQuick"); auto qtQuickNativeModuleId = createModule("QtQuick-cppnative"); - auto intId = createType(qmlModuleId, "int", Storage::TypeTraits::Value); + createType(qmlModuleId, "int", Storage::TypeTraits::Value); auto qtObjectId = createObject(qmlModuleId, "QtObject", diff --git a/tests/unit/tests/unittests/model/modelresourcemanagement-test.cpp b/tests/unit/tests/unittests/model/modelresourcemanagement-test.cpp index c5f5ebd7326..d0dc04db402 100644 --- a/tests/unit/tests/unittests/model/modelresourcemanagement-test.cpp +++ b/tests/unit/tests/unittests/model/modelresourcemanagement-test.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include