1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fix gcc warnings

This commit is contained in:
srcejon 2023-11-22 15:08:25 +00:00
parent e7076f6a17
commit 25016b5b50
4 changed files with 3 additions and 3 deletions

View File

@ -408,7 +408,6 @@ QString Aircraft::getLabel(const ADSBDemodSettings *settings) const
if (m_altitudeValid) if (m_altitudeValid)
{ {
QStringList row1; QStringList row1;
int transitionAlt = 6500;
QChar c = m_altitude >= settings->m_transitionAlt ? 'F' : 'A'; QChar c = m_altitude >= settings->m_transitionAlt ? 'F' : 'A';
// Convert altitude to flight level // Convert altitude to flight level
int fl = m_altitude / 100; int fl = m_altitude / 100;

View File

@ -286,7 +286,6 @@ void AMDemodGUI::on_deltaFrequency_changed(qint64 value)
(void) value; (void) value;
qint64 offset = 0; qint64 offset = 0;
bool valid = true;
if (m_settings.m_frequencyMode == AMDemodSettings::Offset) if (m_settings.m_frequencyMode == AMDemodSettings::Offset)
{ {

View File

@ -27,6 +27,8 @@ FreqScannerAddRangeDialog::FreqScannerAddRangeDialog(int step, QWidget* parent)
QDialog(parent), QDialog(parent),
ui(new Ui::FreqScannerAddRangeDialog) ui(new Ui::FreqScannerAddRangeDialog)
{ {
(void) step;
ui->setupUi(this); ui->setupUi(this);
ui->start->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->start->setColorMapper(ColorMapper(ColorMapper::GrayGold));

View File

@ -1942,7 +1942,7 @@ void StarTrackerGUI::plotElevationPolarChart()
// Plot rotator position // Plot rotator position
QString ourSourceName = QString("F0:%1 %2").arg(m_starTracker->getIndexInFeatureSet()).arg(m_starTracker->getIdentifier()); // Only one feature set in practice? QString ourSourceName = QString("F0:%1 %2").arg(m_starTracker->getIndexInFeatureSet()).arg(m_starTracker->getIdentifier()); // Only one feature set in practice?
std::vector<FeatureSet*>& featureSets = MainCore::instance()->getFeatureeSets(); std::vector<FeatureSet*>& featureSets = MainCore::instance()->getFeatureeSets();
for (int featureSetIndex = 0; featureSetIndex < featureSets.size(); featureSetIndex++) for (int featureSetIndex = 0; featureSetIndex < (int)featureSets.size(); featureSetIndex++)
{ {
FeatureSet *featureSet = featureSets[featureSetIndex]; FeatureSet *featureSet = featureSets[featureSetIndex];
for (int featureIndex = 0; featureIndex < featureSet->getNumberOfFeatures(); featureIndex++) for (int featureIndex = 0; featureIndex < featureSet->getNumberOfFeatures(); featureIndex++)