Minor tweak

This commit is contained in:
Jack Andersen 2018-12-07 15:28:54 -10:00
parent 54676aff91
commit 2c2c72bfd1
5 changed files with 9 additions and 8 deletions

View File

@ -171,8 +171,6 @@ class HIDDeviceUdev final : public IHIDDevice
udev_device_unref(udevDev);
}
int m_reportDescSz;
static void _threadProcHID(std::shared_ptr<HIDDeviceUdev> device)
{
char errStr[256];

View File

@ -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;
}

View File

@ -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);

View File

@ -43,7 +43,10 @@ public:
m_pname(pname),
m_args(args),
m_singleInstance(singleInstance)
{}
{
(void)m_callback;
(void)m_singleInstance;
}
EPlatformType getPlatformType() const
{

View File

@ -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))