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

Fix gcc warnings

This commit is contained in:
srcejon 2023-11-22 14:40:19 +00:00
parent 7cc9cd1bf1
commit e7076f6a17
4 changed files with 4 additions and 4 deletions

View File

@ -290,7 +290,7 @@ int AirspyHFInput::getSampleRate() const
}
}
uint32_t AirspyHFInput::getSampleRateFromIndex(int devSampleRateIndex) const
uint32_t AirspyHFInput::getSampleRateFromIndex(quint32 devSampleRateIndex) const
{
if (devSampleRateIndex >= m_sampleRates.size()) {
devSampleRateIndex = m_sampleRates.size() - 1;

View File

@ -185,7 +185,7 @@ private:
void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response);
void webapiReverseSendSettings(const QList<QString>& deviceSettingsKeys, const AirspyHFSettings& settings, bool force);
void webapiReverseSendStartStop(bool start);
uint32_t getSampleRateFromIndex(int devSampleRateIndex) const;
uint32_t getSampleRateFromIndex(quint32 devSampleRateIndex) const;
private slots:
void networkManagerFinished(QNetworkReply *reply);

View File

@ -33,8 +33,8 @@ SDRPlayV3Thread::SDRPlayV3Thread(sdrplay_api_DeviceT* dev, SampleSinkFifo* sampl
m_dev(dev),
m_convertBuffer(SDRPLAYV3_INIT_NBSAMPLES),
m_sampleFifo(sampleFifo),
m_samplerate(2000000),
m_replayBuffer(replayBuffer),
m_samplerate(2000000),
m_log2Decim(0),
m_fcPos(0),
m_iqOrder(true),

View File

@ -163,7 +163,7 @@ public:
wavFile.startRecording();
int offset = m_write + m_data.size() - m_count;
for (int i = 0; i < m_count; i += 2)
for (unsigned int i = 0; i < m_count; i += 2)
{
int idx = (i + offset) % m_data.size();
qint16 l = conv(m_data[idx]);