mirror of https://github.com/AxioDL/boo.git
Minor tweak
This commit is contained in:
parent
54676aff91
commit
2c2c72bfd1
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -43,7 +43,10 @@ public:
|
|||
m_pname(pname),
|
||||
m_args(args),
|
||||
m_singleInstance(singleInstance)
|
||||
{}
|
||||
{
|
||||
(void)m_callback;
|
||||
(void)m_singleInstance;
|
||||
}
|
||||
|
||||
EPlatformType getPlatformType() const
|
||||
{
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue