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);
setPath(path);
can_id = 0;
sock = 0;
}

View File

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