1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00

Fix compiler warnings

This commit is contained in:
Jon Beniston 2020-10-03 09:27:37 +01:00
parent c895363e3b
commit 3e6edfa17f
3 changed files with 4 additions and 4 deletions

View File

@ -1048,7 +1048,7 @@ void USRPOutput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, c
// transfer data that has been modified. When force is on transfer all data except reverse API data // transfer data that has been modified. When force is on transfer all data except reverse API data
if (deviceSettingsKeys.contains("antennaPath") || force) { if (deviceSettingsKeys.contains("antennaPath") || force) {
swgUsrpOutputSettings->setAntennaPath(&QString(settings.m_antennaPath)); swgUsrpOutputSettings->setAntennaPath(new QString(settings.m_antennaPath));
} }
if (deviceSettingsKeys.contains("centerFrequency") || force) { if (deviceSettingsKeys.contains("centerFrequency") || force) {
swgUsrpOutputSettings->setCenterFrequency(settings.m_centerFrequency); swgUsrpOutputSettings->setCenterFrequency(settings.m_centerFrequency);
@ -1057,7 +1057,7 @@ void USRPOutput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, c
swgUsrpOutputSettings->setDevSampleRate(settings.m_devSampleRate); swgUsrpOutputSettings->setDevSampleRate(settings.m_devSampleRate);
} }
if (deviceSettingsKeys.contains("clockSource") || force) { if (deviceSettingsKeys.contains("clockSource") || force) {
swgUsrpOutputSettings->setClockSource(&QString(settings.m_clockSource)); swgUsrpOutputSettings->setClockSource(new QString(settings.m_clockSource));
} }
if (deviceSettingsKeys.contains("gain") || force) { if (deviceSettingsKeys.contains("gain") || force) {
swgUsrpOutputSettings->setGain(settings.m_gain); swgUsrpOutputSettings->setGain(settings.m_gain);

View File

@ -98,7 +98,7 @@ void USRPOutputThread::run()
m_packets++; m_packets++;
if (samples_sent != DeviceUSRP::blockSize) if (samples_sent != DeviceUSRP::blockSize)
{ {
qDebug("USRPOutputThread::run written %d/%d samples", samples_sent, DeviceUSRP::blockSize); qDebug("USRPOutputThread::run written %ld/%d samples", samples_sent, DeviceUSRP::blockSize);
} }
} }
catch (std::exception& e) catch (std::exception& e)

View File

@ -132,7 +132,7 @@ void USRPInputThread::run()
m_packets++; m_packets++;
if (samples_received != DeviceUSRP::blockSize) if (samples_received != DeviceUSRP::blockSize)
{ {
qDebug("USRPInputThread::run - received %d/%d samples", samples_received, DeviceUSRP::blockSize); qDebug("USRPInputThread::run - received %ld/%d samples", samples_received, DeviceUSRP::blockSize);
} }
if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT) if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT)
{ {