Created
March 28, 2014 10:29
-
-
Save xhochy/9829721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8d51a6bd38964d36d446a4f45242077cc15b1c4b Mon Sep 17 00:00:00 2001 | |
From: "Uwe L. Korn" <uwelk@xhochy.com> | |
Date: Fri, 28 Mar 2014 10:28:16 +0000 | |
Subject: [PATCH] Add Q_UNUSED as Q_ASSERT is a no-op in release mode | |
--- | |
TelepathyQt/connection-manager.cpp | 1 + | |
examples/file-transfer/file-sender.cpp | 2 ++ | |
2 files changed, 3 insertions(+) | |
diff --git a/TelepathyQt/connection-manager.cpp b/TelepathyQt/connection-manager.cpp | |
index 96b3234..e6e32e0 100644 | |
--- a/TelepathyQt/connection-manager.cpp | |
+++ b/TelepathyQt/connection-manager.cpp | |
@@ -1084,6 +1084,7 @@ void ConnectionManager::gotParametersLegacy(QDBusPendingCallWatcher *watcher) | |
++pos; | |
} | |
Q_ASSERT(found); | |
+ Q_UNUSED(found); | |
if (!reply.isError()) { | |
debug() << QString(QLatin1String("Got reply to ConnectionManager.GetParameters(%1)")).arg(protocolName); | |
diff --git a/examples/file-transfer/file-sender.cpp b/examples/file-transfer/file-sender.cpp | |
index a747af1..50d50c2 100644 | |
--- a/examples/file-transfer/file-sender.cpp | |
+++ b/examples/file-transfer/file-sender.cpp | |
@@ -91,6 +91,7 @@ void FileSender::onAMReady(PendingOperation *op) | |
PendingReady *pr = qobject_cast<PendingReady*>(op); | |
Q_ASSERT(pr != NULL); | |
+ Q_UNUSED(pr); | |
qDebug() << "AccountManager ready"; | |
mAccount = mAM->accountForObjectPath( | |
@@ -116,6 +117,7 @@ void FileSender::onAccountReady(PendingOperation *op) | |
PendingReady *pr = qobject_cast<PendingReady*>(op); | |
Q_ASSERT(pr != NULL); | |
+ Q_UNUSED(pr); | |
qDebug() << "Account ready"; | |
qDebug() << "Checking if account is online..."; | |
-- | |
1.8.3.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment