From e6bc9638e7e9d48652fb7d92998f3444951d990a Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 8 Sep 2020 15:10:49 +0300 Subject: [PATCH] fix some warnings --- libs/main/io_devices/pican.cpp | 1 + libs/main/io_devices/pigpio.cpp | 4 ---- libs/main/thread/pithreadpoolexecutor.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libs/main/io_devices/pican.cpp b/libs/main/io_devices/pican.cpp index 0d0443c3..38f6ae00 100644 --- a/libs/main/io_devices/pican.cpp +++ b/libs/main/io_devices/pican.cpp @@ -43,6 +43,7 @@ PICAN::PICAN(const PIString & path, PIIODevice::DeviceMode mode) : PIIODevice(pa setThreadedReadBufferSize(256); setPath(path); can_id = 0; + sock = 0; } diff --git a/libs/main/io_devices/pigpio.cpp b/libs/main/io_devices/pigpio.cpp index 808983f5..85d6cb78 100644 --- a/libs/main/io_devices/pigpio.cpp +++ b/libs/main/io_devices/pigpio.cpp @@ -26,10 +26,6 @@ # include # include #endif -#ifdef __GNUC__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wunused-but-set-variable" -#endif /*! \class PIGPIO diff --git a/libs/main/thread/pithreadpoolexecutor.h b/libs/main/thread/pithreadpoolexecutor.h index 1fa93fc6..70c5850b 100644 --- a/libs/main/thread/pithreadpoolexecutor.h +++ b/libs/main/thread/pithreadpoolexecutor.h @@ -56,8 +56,6 @@ private: std::atomic_bool isShutdown_; PIBlockingQueue > taskQueue; PIVector threadPool; - bool queue_own; - }; #endif // PITHREADPOOLEXECUTOR_H