Skip to content

Commit

Permalink
QBasicMutex::destroyInternal(): avoid clazy warning about returning void
Browse files Browse the repository at this point in the history
Says Clazy:

   removed_api.cpp:1291:5: Returning a void expression [clazy-returning-void-expression]

Just drop the return keyword.

Amends bc080a9.

Pick-to: 6.9
Change-Id: Iccbc343f2dd72a7c75da5e703e8e0722a0c50f31
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
marcmutz committed Jan 29, 2025
1 parent 34a4acf commit 875aaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/compat/removed_api.cpp
Original file line number Diff line number Diff line change
@@ -1286,7 +1286,7 @@ QByteArray QMetaEnum::valueToKeys(int value) const
#if QT_CONFIG(thread)
void QBasicMutex::destroyInternal(QMutexPrivate *d)
{
return destroyInternal(static_cast<void *>(d));
destroyInternal(static_cast<void *>(d));
}
#endif

0 comments on commit 875aaa3

Please sign in to comment.