From 1d737cb87696abda3cbf82f0743d38cdd4b59edb Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 22 Mar 2015 09:46:44 -0700 Subject: [PATCH] Fixed unused variable warnings --- src/comm/LinkManager.cc | 1 + src/comm/MAVLinkProtocol.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index a0875739d..694f092ab 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -212,6 +212,7 @@ void LinkManager::_deleteLink(LinkInterface* link) break; } } + Q_UNUSED(found); Q_ASSERT(found); _linkListMutex.unlock(); diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index 90b1e35d7..5d76b046b 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -204,6 +204,7 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected) break; } } + Q_UNUSED(found); Q_ASSERT(found); if (_connectedLinks.count() == 0) { -- 2.22.0