diff options
| author | Tim Blechmann <tim@klingt.org> | 2022-10-05 19:37:07 +0800 |
|---|---|---|
| committer | Tim Blechmann <tim@klingt.org> | 2022-11-16 12:57:58 +0800 |
| commit | aadf0243c693d6bfd9009278b883e1d5b1015097 (patch) | |
| tree | 1f64dcf565f2454bacdec853e88157f69d479e9d /src/qmlcompiler/qqmljscompiler.cpp | |
| parent | 6b9c5f6ed7b768dc918feac76bf40cdffb72bfe7 (diff) | |
tooling: silence -Wextra-semi-stmt
silence clang's -Wextra-semi-stmt
Pick-to: 6.4
Change-Id: I5dee9ec46b44076f0fc0590399131b1b267e1ad2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index 53798db475..7d79fe9864 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -464,7 +464,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) { @@ -479,8 +479,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) |
