diff --git a/lib/inputdev/HIDDeviceUdev.cpp b/lib/inputdev/HIDDeviceUdev.cpp index 22783eb..5cbd66c 100644 --- a/lib/inputdev/HIDDeviceUdev.cpp +++ b/lib/inputdev/HIDDeviceUdev.cpp @@ -171,8 +171,6 @@ class HIDDeviceUdev final : public IHIDDevice udev_device_unref(udevDev); } - int m_reportDescSz; - static void _threadProcHID(std::shared_ptr device) { char errStr[256]; diff --git a/lib/inputdev/HIDListenerUdev.cpp b/lib/inputdev/HIDListenerUdev.cpp index 2be0924..0d3b451 100644 --- a/lib/inputdev/HIDListenerUdev.cpp +++ b/lib/inputdev/HIDListenerUdev.cpp @@ -106,7 +106,7 @@ class HIDListenerUdev final : public IHIDListener int reportDescSize; if (ioctl(fd, HIDIOCGRDESCSIZE, &reportDescSize) == -1) { - const char* err = strerror(errno); + //const char* err = strerror(errno); close(fd); return; } @@ -116,7 +116,7 @@ class HIDListenerUdev final : public IHIDListener reportDesc.size = reportDescSize; if (ioctl(fd, HIDIOCGRDESC, &reportDesc) == -1) { - const char* err = strerror(errno); + //const char* err = strerror(errno); close(fd); return; } diff --git a/lib/inputdev/HIDParser.cpp b/lib/inputdev/HIDParser.cpp index 1320ee3..c13213f 100644 --- a/lib/inputdev/HIDParser.cpp +++ b/lib/inputdev/HIDParser.cpp @@ -494,7 +494,7 @@ HIDParser::ParseItem(HIDReports& reportsOut, uint8_t bDataSize = GetByteValue(it, end, status); if (status == ParserStatus::Error) return ParserStatus::Error; - uint8_t bLongItemTag = GetByteValue(it, end, status); + /*uint8_t bLongItemTag =*/ GetByteValue(it, end, status); if (status == ParserStatus::Error) return ParserStatus::Error; status = AdvanceIt(it, end, bDataSize); diff --git a/lib/x11/ApplicationWayland.hpp b/lib/x11/ApplicationWayland.hpp index e7f2762..6721b47 100644 --- a/lib/x11/ApplicationWayland.hpp +++ b/lib/x11/ApplicationWayland.hpp @@ -43,7 +43,10 @@ public: m_pname(pname), m_args(args), m_singleInstance(singleInstance) - {} + { + (void)m_callback; + (void)m_singleInstance; + } EPlatformType getPlatformType() const { diff --git a/lib/x11/WindowXlib.cpp b/lib/x11/WindowXlib.cpp index e14ebbc..afe281b 100644 --- a/lib/x11/WindowXlib.cpp +++ b/lib/x11/WindowXlib.cpp @@ -1431,8 +1431,8 @@ public: unsigned char* data; Atom type; - Atom t1 = S_ATOMS->m_clipboard; - Atom t2 = S_ATOMS->m_clipdata; + //Atom t1 = S_ATOMS->m_clipboard; + //Atom t2 = S_ATOMS->m_clipdata; if (XGetWindowProperty(m_xDisp, m_windowId, S_ATOMS->m_clipdata, 0, 32, False, AnyPropertyType, &type, &format, &nitems, &rem, &data))