mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-24 21:15:24 -04:00
Some clang warnong fixes
This commit is contained in:
parent
994584cabc
commit
2c3ccc49af
@ -3362,7 +3362,6 @@ void ADSBDemodGUI::updateAirports()
|
|||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
// Save settings we've just used so we know if they've changed
|
// Save settings we've just used so we know if they've changed
|
||||||
m_currentAirportRange = m_currentAirportRange;
|
|
||||||
m_currentAirportMinimumSize = m_settings.m_airportMinimumSize;
|
m_currentAirportMinimumSize = m_settings.m_airportMinimumSize;
|
||||||
m_currentDisplayHeliports = m_settings.m_displayHeliports;
|
m_currentDisplayHeliports = m_settings.m_displayHeliports;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,6 @@ private:
|
|||||||
void *m_dab;
|
void *m_dab;
|
||||||
DABDemodDevice m_device;
|
DABDemodDevice m_device;
|
||||||
audiodata m_ad;
|
audiodata m_ad;
|
||||||
packetdata m_pd;
|
|
||||||
API_struct m_api;
|
API_struct m_api;
|
||||||
|
|
||||||
NCO m_nco;
|
NCO m_nco;
|
||||||
|
@ -370,8 +370,6 @@ void PagerDemodSink::decodeBatch()
|
|||||||
|
|
||||||
void PagerDemodSink::processOneSample(Complex &ci)
|
void PagerDemodSink::processOneSample(Complex &ci)
|
||||||
{
|
{
|
||||||
Complex ca;
|
|
||||||
|
|
||||||
// FM demodulation
|
// FM demodulation
|
||||||
double magsqRaw;
|
double magsqRaw;
|
||||||
Real deviation;
|
Real deviation;
|
||||||
|
@ -119,8 +119,6 @@ void RadiosondeDemodSink::feed(const SampleVector::const_iterator& begin, const
|
|||||||
|
|
||||||
void RadiosondeDemodSink::processOneSample(Complex &ci)
|
void RadiosondeDemodSink::processOneSample(Complex &ci)
|
||||||
{
|
{
|
||||||
Complex ca;
|
|
||||||
|
|
||||||
// FM demodulation
|
// FM demodulation
|
||||||
double magsqRaw;
|
double magsqRaw;
|
||||||
Real deviation;
|
Real deviation;
|
||||||
|
@ -441,7 +441,6 @@ private:
|
|||||||
int m_rotatorFeatureSetIndex;
|
int m_rotatorFeatureSetIndex;
|
||||||
int m_rotatorFeatureIndex;
|
int m_rotatorFeatureIndex;
|
||||||
|
|
||||||
void (*sweepState)();
|
|
||||||
float m_sweep1; // Current sweep position
|
float m_sweep1; // Current sweep position
|
||||||
float m_sweep2;
|
float m_sweep2;
|
||||||
float m_sweep1Stop;
|
float m_sweep1Stop;
|
||||||
|
@ -796,8 +796,6 @@ void RadioClockSink::wwvb()
|
|||||||
|
|
||||||
void RadioClockSink::processOneSample(Complex &ci)
|
void RadioClockSink::processOneSample(Complex &ci)
|
||||||
{
|
{
|
||||||
Complex ca;
|
|
||||||
|
|
||||||
// Calculate average and peak levels for level meter
|
// Calculate average and peak levels for level meter
|
||||||
Real re = ci.real() / SDR_RX_SCALEF;
|
Real re = ci.real() / SDR_RX_SCALEF;
|
||||||
Real im = ci.imag() / SDR_RX_SCALEF;
|
Real im = ci.imag() / SDR_RX_SCALEF;
|
||||||
|
@ -248,7 +248,7 @@ void DeviceSet::loadTxChannelSettings(const Preset *preset, PluginAPI *pluginAPI
|
|||||||
for (int i = 0; i < preset->getChannelCount(); i++)
|
for (int i = 0; i < preset->getChannelCount(); i++)
|
||||||
{
|
{
|
||||||
const Preset::ChannelConfig& channelConfig = preset->getChannelConfig(i);
|
const Preset::ChannelConfig& channelConfig = preset->getChannelConfig(i);
|
||||||
ChannelAPI *channelAPI;
|
ChannelAPI *channelAPI = nullptr;
|
||||||
|
|
||||||
// if we have one instance available already, use it
|
// if we have one instance available already, use it
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ void DeviceSet::loadMIMOChannelSettings(const Preset *preset, PluginAPI *pluginA
|
|||||||
for (int i = 0; i < preset->getChannelCount(); i++)
|
for (int i = 0; i < preset->getChannelCount(); i++)
|
||||||
{
|
{
|
||||||
const Preset::ChannelConfig& channelConfig = preset->getChannelConfig(i);
|
const Preset::ChannelConfig& channelConfig = preset->getChannelConfig(i);
|
||||||
ChannelAPI *channelAPI;
|
ChannelAPI *channelAPI = nullptr;
|
||||||
|
|
||||||
// if we have one instance available already, use it
|
// if we have one instance available already, use it
|
||||||
|
|
||||||
|
@ -27,8 +27,6 @@ class SDRBASE_API ObjectPipe : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ObjectPipe();
|
ObjectPipe();
|
||||||
ObjectPipe(const ObjectPipe&) = default;
|
|
||||||
ObjectPipe& operator=(const ObjectPipe&) = default;
|
|
||||||
|
|
||||||
void setToBeDeleted(int reason, QObject *object);
|
void setToBeDeleted(int reason, QObject *object);
|
||||||
void unsetToBeDeleted();
|
void unsetToBeDeleted();
|
||||||
|
@ -3337,6 +3337,8 @@ void GLSpectrum::mousePressEvent(QMouseEvent* event)
|
|||||||
case SpectrumAnnotationMarker::ShowFull:
|
case SpectrumAnnotationMarker::ShowFull:
|
||||||
(*iMarker)->m_show = SpectrumAnnotationMarker::ShowTop;
|
(*iMarker)->m_show = SpectrumAnnotationMarker::ShowTop;
|
||||||
break;
|
break;
|
||||||
|
case SpectrumAnnotationMarker::Hidden:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
selected = true;
|
selected = true;
|
||||||
}
|
}
|
||||||
@ -3836,13 +3838,13 @@ QString GLSpectrum::displayScaledF(float value, char type, int precision, bool s
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (posValue < 1000) {
|
if (posValue < 1e3) {
|
||||||
return tr("%1").arg(QString::number(value, type, precision));
|
return tr("%1").arg(QString::number(value, type, precision));
|
||||||
} else if (posValue < 1000000) {
|
} else if (posValue < 1e6) {
|
||||||
return tr("%1%2").arg(QString::number(value / 1000.0, type, precision)).arg(showMult ? "k" : "");
|
return tr("%1%2").arg(QString::number(value / 1000.0, type, precision)).arg(showMult ? "k" : "");
|
||||||
} else if (posValue < 1000000000) {
|
} else if (posValue < 1e9) {
|
||||||
return tr("%1%2").arg(QString::number(value / 1000000.0, type, precision)).arg(showMult ? "M" : "");
|
return tr("%1%2").arg(QString::number(value / 1000000.0, type, precision)).arg(showMult ? "M" : "");
|
||||||
} else if (posValue < 1000000000000) {
|
} else if (posValue < 1e12) {
|
||||||
return tr("%1%2").arg(QString::number(value / 1000000000.0, type, precision)).arg(showMult ? "G" : "");
|
return tr("%1%2").arg(QString::number(value / 1000000000.0, type, precision)).arg(showMult ? "G" : "");
|
||||||
} else {
|
} else {
|
||||||
return tr("%1").arg(QString::number(value, 'e', precision));
|
return tr("%1").arg(QString::number(value, 'e', precision));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user