1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

Fix linux warnings

This commit is contained in:
Jon Beniston 2022-02-04 23:57:29 +00:00
parent b0ad41ff04
commit c0adffb25c

View File

@ -911,9 +911,6 @@ void ADSBDemodGUI::handleADSB(
bool newAircraft = false; bool newAircraft = false;
bool updatedCallsign = false; bool updatedCallsign = false;
bool prevAltitudeValid = false;
int prevAltitude;
int df = (data[0] >> 3) & ADS_B_DF_MASK; // Downlink format int df = (data[0] >> 3) & ADS_B_DF_MASK; // Downlink format
int ca = data[0] & 0x7; // Capability int ca = data[0] & 0x7; // Capability
unsigned icao = ((data[1] & 0xff) << 16) | ((data[2] & 0xff) << 8) | (data[3] & 0xff); // ICAO aircraft address unsigned icao = ((data[1] & 0xff) << 16) | ((data[2] & 0xff) << 8) | (data[3] & 0xff); // ICAO aircraft address
@ -924,10 +921,6 @@ void ADSBDemodGUI::handleADSB(
{ {
// Update existing aircraft info // Update existing aircraft info
aircraft = m_aircraft.value(icao); aircraft = m_aircraft.value(icao);
// Save state that we later check to see if it has changed
prevAltitudeValid = aircraft->m_altitudeValid;
prevAltitude = aircraft->m_altitude;
} }
else else
{ {