mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 06:54:39 -04:00
Fixed -Wunused-but-set-variable warnings
This commit is contained in:
@@ -382,6 +382,10 @@ void XTRXOutput::stop()
|
||||
// remove old thread address from buddies (reset in all buddies)
|
||||
const std::vector<DeviceAPI*>& sinkBuddies = m_deviceAPI->getSinkBuddies();
|
||||
std::vector<DeviceAPI*>::const_iterator it = sinkBuddies.begin();
|
||||
|
||||
for (; it != sinkBuddies.end(); ++it) {
|
||||
((DeviceXTRXShared*) (*it)->getBuddySharedPtr())->m_sink->setThread(nullptr);
|
||||
}
|
||||
}
|
||||
else if (nbOriginalChannels == 2) // Reduce from MO to SO by deleting and re-creating the thread
|
||||
{
|
||||
@@ -398,6 +402,11 @@ void XTRXOutput::stop()
|
||||
// remove old thread address from buddies (reset in all buddies). The address being held only in the owning source.
|
||||
const std::vector<DeviceAPI*>& sinkBuddies = m_deviceAPI->getSinkBuddies();
|
||||
std::vector<DeviceAPI*>::const_iterator it = sinkBuddies.begin();
|
||||
|
||||
for (; it != sinkBuddies.end(); ++it) {
|
||||
((DeviceXTRXShared*) (*it)->getBuddySharedPtr())->m_sink->setThread(nullptr);
|
||||
}
|
||||
|
||||
applySettings(m_settings, true);
|
||||
xtrxOutputThread->startWork();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user