Compare commits

...

2 Commits

Author SHA1 Message Date
Edouard Griffiths ba4c8a42fc
Merge pull request #2075 from dforsi/fix/warnings
Fix "More '%' conversions than data arguments"
2024-04-20 20:28:34 +02:00
Daniele Forsi 613d9e4005 Fix "More '%' conversions than data arguments"
Fixes a compiler warning:
.../sdrangel/sdrbase/audio/audioinputdevice.cpp:106: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
2024-04-20 19:11:16 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ bool AudioInputDevice::start(int device, int rate)
if (!devInfo.isFormatSupported(m_audioFormat))
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
qWarning("AudioInputDevice::start: %d Hz S16_LE audio format not supported.");
qWarning("AudioInputDevice::start: %d Hz S16_LE audio format not supported.", rate);
#else
m_audioFormat = devInfo.deviceInfo().nearestFormat(m_audioFormat);
qWarning("AudioInputDevice::start: %d Hz S16_LE audio format not supported. Nearest is sampleRate: %d channelCount: %d sampleSize: %d sampleType: %d",