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:
parent
7cc9cd1bf1
commit
e7076f6a17
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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),
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user