Add Q_DECL_UNUSED to a function only used in Q_ASSERT
Change-Id: I18697037db742d38874c8a95df12c189ccc51068 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
This commit is contained in:
parent
adb0cfc24c
commit
d52b5d37e2
@ -1848,7 +1848,8 @@ void QDBusConnectionPrivate::waitForFinished(QDBusPendingCallPrivate *pcall)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool waitingForFinishedIsSet(QDBusPendingCallPrivate *call)
|
// this function is called only in a Q_ASSERT
|
||||||
|
static inline Q_DECL_UNUSED bool waitingForFinishedIsSet(QDBusPendingCallPrivate *call)
|
||||||
{
|
{
|
||||||
const QMutexLocker locker(&call->mutex);
|
const QMutexLocker locker(&call->mutex);
|
||||||
return call->waitingForFinished;
|
return call->waitingForFinished;
|
||||||
|
Loading…
Reference in New Issue
Block a user