aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2022-10-05 19:37:07 +0800
committerTim Blechmann <tim@klingt.org>2022-11-16 08:39:53 +0000
commit88d173336e422b7241508c085f2c236e70955da7 (patch)
tree28fe8a02505f1b6d90d194d28fe5883468497d24 /src
parent0b1464f6d0c86c13019db3e97f1e4d118e54c782 (diff)
tooling: silence -Wextra-semi-stmt
silence clang's -Wextra-semi-stmt Change-Id: I5dee9ec46b44076f0fc0590399131b1b267e1ad2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit aadf0243c693d6bfd9009278b883e1d5b1015097)
Diffstat (limited to 'src')
-rw-r--r--src/qml/Qt6QmlMacros.cmake2
-rw-r--r--src/qmlcompiler/qqmljscompiler.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index b1420b0360..2205d178cd 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -1704,7 +1704,7 @@ function(qt6_add_qml_plugin target)
# file have sensible indenting
set(qt_qml_plugin_constructor_content
"volatile auto registration = &${register_types_function_name};
- Q_UNUSED(registration);"
+ Q_UNUSED(registration)"
)
set(generated_cpp_file
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp
index 9e4c3a1cbb..c69b272d35 100644
--- a/src/qmlcompiler/qqmljscompiler.cpp
+++ b/src/qmlcompiler/qqmljscompiler.cpp
@@ -438,7 +438,7 @@ void wrapCall(const QQmlPrivate::AOTCompiledContext *aotContext, void *dataPtr,
{
using return_type = std::invoke_result_t<Binding, const QQmlPrivate::AOTCompiledContext *, void **>;
if constexpr (std::is_same_v<return_type, void>) {
- Q_UNUSED(dataPtr);
+ Q_UNUSED(dataPtr)
binding(aotContext, argumentsPtr);
} else {
if (dataPtr) {
@@ -453,8 +453,8 @@ void wrapCall(const QQmlPrivate::AOTCompiledContext *aotContext, void *dataPtr,
static const char *funcHeaderCode = R"(
[](const QQmlPrivate::AOTCompiledContext *aotContext, void *dataPtr, void **argumentsPtr) {
wrapCall(aotContext, dataPtr, argumentsPtr, [](const QQmlPrivate::AOTCompiledContext *aotContext, void **argumentsPtr) {
-Q_UNUSED(aotContext);
-Q_UNUSED(argumentsPtr);
+Q_UNUSED(aotContext)
+Q_UNUSED(argumentsPtr)
)";
bool qSaveQmlJSUnitAsCpp(const QString &inputFileName, const QString &outputFileName, const QV4::CompiledData::SaveableUnitPointer &unit, const QQmlJSAotFunctionMap &aotFunctions, QString *errorString)