mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-19 08:11:45 +00:00
Quiet spurious warning
Fixes https://github.com/libsdl-org/SDL/issues/8112
This commit is contained in:
@@ -884,9 +884,9 @@ int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data,
|
|||||||
unsigned char report = data[0];
|
unsigned char report = data[0];
|
||||||
|
|
||||||
res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
|
res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
|
||||||
if (res < 0)
|
if (res < 0) {
|
||||||
perror("ioctl (GFEATURE)");
|
/* perror("ioctl (GFEATURE)"); */
|
||||||
else if (dev->needs_ble_hack) {
|
} else if (dev->needs_ble_hack) {
|
||||||
/* Versions of BlueZ before 5.56 don't include the report in the data,
|
/* Versions of BlueZ before 5.56 don't include the report in the data,
|
||||||
* and versions of BlueZ >= 5.56 include 2 copies of the report.
|
* and versions of BlueZ >= 5.56 include 2 copies of the report.
|
||||||
* We'll fix it so that there is a single copy of the report in both cases
|
* We'll fix it so that there is a single copy of the report in both cases
|
||||||
|
Reference in New Issue
Block a user