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>
Pekka Paalanen 12 years ago committed by Kristian Høgsberg
parent 4ddf1b2c4d
commit 168ed72dc7
  1. 3
      src/evdev.c

@ -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…
Cancel
Save