This avoids dlls/winebus.sys/bus_udev.c:344:13: warning: ‘hidraw_device_read_report’ defined but not used [-Wunused-function] on non-Linux systems.
From: Gerald Pfeifer gerald@pfeifer.com
This avoids dlls/winebus.sys/bus_udev.c:344:13: warning: ‘hidraw_device_read_report’ defined but not used [-Wunused-function] on non-Linux systems. --- dlls/winebus.sys/bus_udev.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c index b7e8ba946ac..1ad4653fd8b 100644 --- a/dlls/winebus.sys/bus_udev.c +++ b/dlls/winebus.sys/bus_udev.c @@ -341,6 +341,7 @@ static NTSTATUS hidraw_device_get_report_descriptor(struct unix_device *iface, B #endif }
+#ifdef HAVE_LINUX_HIDRAW_H static void hidraw_device_read_report(struct unix_device *iface) { struct hidraw_device *impl = hidraw_impl_from_unix_device(iface); @@ -354,6 +355,7 @@ static void hidraw_device_read_report(struct unix_device *iface) else bus_event_queue_input_report(&event_queue, iface, buff, size); } +#endif
static void hidraw_device_set_output_report(struct unix_device *iface, HID_XFER_PACKET *packet, IO_STATUS_BLOCK *io) {
This merge request was approved by Rémi Bernon.