Browse Source

Fixed unused variable warnings

QGC4.4
Don Gagne 10 years ago
parent
commit
1d737cb876
  1. 1
      src/comm/LinkManager.cc
  2. 1
      src/comm/MAVLinkProtocol.cc

1
src/comm/LinkManager.cc

@ -212,6 +212,7 @@ void LinkManager::_deleteLink(LinkInterface* link) @@ -212,6 +212,7 @@ void LinkManager::_deleteLink(LinkInterface* link)
break;
}
}
Q_UNUSED(found);
Q_ASSERT(found);
_linkListMutex.unlock();

1
src/comm/MAVLinkProtocol.cc

@ -204,6 +204,7 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected) @@ -204,6 +204,7 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected)
break;
}
}
Q_UNUSED(found);
Q_ASSERT(found);
if (_connectedLinks.count() == 0) {

Loading…
Cancel
Save