Fix gcc warnings

pull/891/head
Jon Beniston 2021-05-07 22:06:51 +01:00
rodzic 1ac835260e
commit 2c9260d075
3 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -144,8 +144,6 @@ void AISDemodSink::processOneSample(Complex &ci)
bool scopeCRCInvalid = false;
Real dcOffset = 0.0f;
bool thresholdMet = false;
Real peakFreq = 0.0f;
Real freqOffset = 0.0f;
if (m_rxBufCnt >= m_rxBufLength)
{
Real trainingSum = 0.0f;

Wyświetl plik

@ -115,7 +115,7 @@ public:
private:
std::vector<Real> m_taps;
std::vector<Type> m_samples;
int m_ptr;
unsigned int m_ptr;
};
#endif // INCLUDE_GAUSSIAN_H

Wyświetl plik

@ -118,7 +118,7 @@ QString AISMessage::typeToString(quint8 type)
return "N/A";
} else if ((type >= 100) && (type < 199)) {
return "Preserved for regional use";
} else if ((type >= 200) && (type <= 255)) {
} else if (type >= 200) {
return "Preserved for future use";
} else if ((type >= 50) && (type <= 59)) {
const QStringList specialCrafts = {
@ -267,7 +267,7 @@ QString AISMessage::getString(const QByteArray ba, int byteIdx, int bitsLeft, in
AISPositionReport::AISPositionReport(QByteArray ba) :
AISMessage(ba)
{
m_status = ((ba[4] & 0x3) << 2) | (ba[5] >> 6) & 0x3;
m_status = ((ba[4] & 0x3) << 2) | ((ba[5] >> 6) & 0x3);
int rateOfTurn = ((ba[5] << 2) & 0xfc) | ((ba[6] >> 6) & 0x3);
if (rateOfTurn == 127) {