fix some warnings

This commit is contained in:
2020-09-08 15:10:49 +03:00
parent 00321257b4
commit e6bc9638e7
3 changed files with 1 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ PICAN::PICAN(const PIString & path, PIIODevice::DeviceMode mode) : PIIODevice(pa
setThreadedReadBufferSize(256); setThreadedReadBufferSize(256);
setPath(path); setPath(path);
can_id = 0; can_id = 0;
sock = 0;
} }

View File

@@ -26,10 +26,6 @@
# include <unistd.h> # include <unistd.h>
# include <cstdlib> # include <cstdlib>
#endif #endif
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
/*! \class PIGPIO /*! \class PIGPIO

View File

@@ -56,8 +56,6 @@ private:
std::atomic_bool isShutdown_; std::atomic_bool isShutdown_;
PIBlockingQueue<std::function<void()> > taskQueue; PIBlockingQueue<std::function<void()> > taskQueue;
PIVector<PIThread*> threadPool; PIVector<PIThread*> threadPool;
bool queue_own;
}; };
#endif // PITHREADPOOLEXECUTOR_H #endif // PITHREADPOOLEXECUTOR_H