From 36f091f65d1d7109cc50fedb8b2911c14f93e591 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 28 Jan 2025 18:24:03 +0100 Subject: [PATCH] QBasicMutex::destroyInternal(): avoid clazy warning about returning void Says Clazy: removed_api.cpp:1291:5: Returning a void expression [clazy-returning-void-expression] Just drop the return keyword. Amends bc080a909b8bb67c1fb23afca69682ba86cdf526. Change-Id: Iccbc343f2dd72a7c75da5e703e8e0722a0c50f31 Reviewed-by: Fabian Kosmale (cherry picked from commit 875aaa39a28dfe9c26f1416f3e16758540b17a27) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/compat/removed_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 751c1995eda..717d72e91d4 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -1288,7 +1288,7 @@ QByteArray QMetaEnum::valueToKeys(int value) const #if QT_CONFIG(thread) void QBasicMutex::destroyInternal(QMutexPrivate *d) { - return destroyInternal(static_cast(d)); + destroyInternal(static_cast(d)); } #endif