diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-13 09:06:36 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-13 09:21:31 +0100 |
commit | 70ed83007fef6bb5ac13488ad9767022d1c59f12 (patch) | |
tree | 6f6c86b8ed4dab335796d7442f9cb01e3cd4f057 /src/qmlcompiler | |
parent | cc5669bd4555f9912bcc332239751af01d287507 (diff) |
QmlCompiler: Mark dataPtr as unused for void AOT functions
Otherwise we get lots of "unused" warnings from the compiler.
Change-Id: I7744715c476350dd3bba34500589cb1c62672c9f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler')
-rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index 9c2ea7b68e..7d780b21a1 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -457,6 +457,7 @@ bool qSaveQmlJSUnitAsCpp(const QString &inputFileName, const QString &outputFile void wrapCall(QQmlContext *context, QObject *scopeObject, void *dataPtr, Binding &&binding) { using return_type = std::invoke_result_t<Binding, QQmlContext*, QObject*>; if constexpr (std::is_same_v<return_type, void>) { + Q_UNUSED(dataPtr); binding(context, scopeObject); } else { auto result = binding(context, scopeObject); |