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:
Thiago Macieira 2013-01-28 20:16:39 -08:00 committed by The Qt Project
parent adb0cfc24c
commit d52b5d37e2

View File

@ -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;