From d8ff4ea1de71bd521c8c9e50e1c12267206c9721 Mon Sep 17 00:00:00 2001 From: vsonnier Date: Sun, 29 Oct 2017 15:06:24 +0100 Subject: [PATCH] Squash some warnings with std::shared_ptr init seen on Ubuntu 16.04 --- src/audio/AudioThread.cpp | 3 +-- src/demod/DemodulatorPreThread.cpp | 2 +- src/demod/DemodulatorWorkerThread.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/audio/AudioThread.cpp b/src/audio/AudioThread.cpp index f4849c8..e5db98b 100644 --- a/src/audio/AudioThread.cpp +++ b/src/audio/AudioThread.cpp @@ -20,8 +20,7 @@ std::map AudioThread::deviceThread; std::recursive_mutex AudioThread::m_device_mutex; -AudioThread::AudioThread() : IOThread(), - currentInput(nullptr), inputQueue(nullptr), nBufferFrames(1024), sampleRate(0) { +AudioThread::AudioThread() : IOThread(), nBufferFrames(1024), sampleRate(0) { audioQueuePtr = 0; underflowCount = 0; diff --git a/src/demod/DemodulatorPreThread.cpp b/src/demod/DemodulatorPreThread.cpp index 5943c7f..049014b 100644 --- a/src/demod/DemodulatorPreThread.cpp +++ b/src/demod/DemodulatorPreThread.cpp @@ -15,7 +15,7 @@ //50 ms #define HEARTBEAT_CHECK_PERIOD_MICROS (50 * 1000) -DemodulatorPreThread::DemodulatorPreThread(DemodulatorInstance* parent) : IOThread(), iqResampler(NULL), iqResampleRatio(1), cModem(nullptr), cModemKit(nullptr), iqInputQueue(NULL), iqOutputQueue(NULL) +DemodulatorPreThread::DemodulatorPreThread(DemodulatorInstance* parent) : IOThread(), iqResampler(NULL), iqResampleRatio(1), cModem(nullptr), cModemKit(nullptr) { initialized.store(false); this->parent = parent; diff --git a/src/demod/DemodulatorWorkerThread.cpp b/src/demod/DemodulatorWorkerThread.cpp index 53a1a96..c736368 100644 --- a/src/demod/DemodulatorWorkerThread.cpp +++ b/src/demod/DemodulatorWorkerThread.cpp @@ -10,7 +10,7 @@ #define HEARTBEAT_CHECK_PERIOD_MICROS (50 * 1000) DemodulatorWorkerThread::DemodulatorWorkerThread() : IOThread(), - commandQueue(nullptr), resultQueue(nullptr), cModem(nullptr), cModemKit(nullptr) { + cModem(nullptr), cModemKit(nullptr) { } DemodulatorWorkerThread::~DemodulatorWorkerThread() {