mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 13:20:28 +01:00
evdev: kill a warning in evdev_led_update()
evdev.c: In function 'evdev_led_update': evdev.c:57:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result Useless in this case. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
e427ef8cb7
commit
7ef5852dff
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ evdev_led_update(struct wl_list *evdev_devices, enum weston_led leds)
|
|||
|
||||
wl_list_for_each(device, evdev_devices, link) {
|
||||
if (device->caps & EVDEV_KEYBOARD)
|
||||
write(device->fd, ev, sizeof ev);
|
||||
i = write(device->fd, ev, sizeof ev);
|
||||
(void)i; /* no, we really don't care about the return value */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue