From d52b5d37e2849369b1e9ab2d32e9290e22db0ef4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 28 Jan 2013 20:16:39 -0800 Subject: [PATCH] Add Q_DECL_UNUSED to a function only used in Q_ASSERT Change-Id: I18697037db742d38874c8a95df12c189ccc51068 Reviewed-by: Frederik Gladhorn Reviewed-by: Lorn Potter --- src/dbus/qdbusintegrator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp index 90f011de54..b6611c7517 100644 --- a/src/dbus/qdbusintegrator.cpp +++ b/src/dbus/qdbusintegrator.cpp @@ -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); return call->waitingForFinished;