mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	Fix gcc warnings
This commit is contained in:
		
							parent
							
								
									1ac835260e
								
							
						
					
					
						commit
						2c9260d075
					
				@ -144,8 +144,6 @@ void AISDemodSink::processOneSample(Complex &ci)
 | 
				
			|||||||
    bool scopeCRCInvalid = false;
 | 
					    bool scopeCRCInvalid = false;
 | 
				
			||||||
    Real dcOffset = 0.0f;
 | 
					    Real dcOffset = 0.0f;
 | 
				
			||||||
    bool thresholdMet = false;
 | 
					    bool thresholdMet = false;
 | 
				
			||||||
    Real peakFreq = 0.0f;
 | 
					 | 
				
			||||||
    Real freqOffset = 0.0f;
 | 
					 | 
				
			||||||
    if (m_rxBufCnt >= m_rxBufLength)
 | 
					    if (m_rxBufCnt >= m_rxBufLength)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Real trainingSum = 0.0f;
 | 
					        Real trainingSum = 0.0f;
 | 
				
			||||||
 | 
				
			|||||||
@ -115,7 +115,7 @@ public:
 | 
				
			|||||||
private:
 | 
					private:
 | 
				
			||||||
    std::vector<Real> m_taps;
 | 
					    std::vector<Real> m_taps;
 | 
				
			||||||
    std::vector<Type> m_samples;
 | 
					    std::vector<Type> m_samples;
 | 
				
			||||||
    int m_ptr;
 | 
					    unsigned int m_ptr;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // INCLUDE_GAUSSIAN_H
 | 
					#endif // INCLUDE_GAUSSIAN_H
 | 
				
			||||||
 | 
				
			|||||||
@ -118,7 +118,7 @@ QString AISMessage::typeToString(quint8 type)
 | 
				
			|||||||
        return "N/A";
 | 
					        return "N/A";
 | 
				
			||||||
    } else if ((type >= 100) && (type < 199)) {
 | 
					    } else if ((type >= 100) && (type < 199)) {
 | 
				
			||||||
        return "Preserved for regional use";
 | 
					        return "Preserved for regional use";
 | 
				
			||||||
    } else if ((type >= 200) && (type <= 255)) {
 | 
					    } else if (type >= 200) {
 | 
				
			||||||
        return "Preserved for future use";
 | 
					        return "Preserved for future use";
 | 
				
			||||||
    } else if ((type >= 50) && (type <= 59)) {
 | 
					    } else if ((type >= 50) && (type <= 59)) {
 | 
				
			||||||
        const QStringList specialCrafts = {
 | 
					        const QStringList specialCrafts = {
 | 
				
			||||||
@ -267,7 +267,7 @@ QString AISMessage::getString(const QByteArray ba, int byteIdx, int bitsLeft, in
 | 
				
			|||||||
AISPositionReport::AISPositionReport(QByteArray ba) :
 | 
					AISPositionReport::AISPositionReport(QByteArray ba) :
 | 
				
			||||||
    AISMessage(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);
 | 
					    int rateOfTurn = ((ba[5] << 2) & 0xfc) | ((ba[6] >> 6) & 0x3);
 | 
				
			||||||
    if (rateOfTurn == 127) {
 | 
					    if (rateOfTurn == 127) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user