[PATCH weston 18/20] evdev: kill a warning in evdev_led_update()
Pekka Paalanen
ppaalanen at gmail.com
Fri Aug 3 04:39:14 PDT 2012
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 at gmail.com>
---
src/evdev.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index 09275f4..7d93564 100644
--- a/src/evdev.c
+++ b/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 */
}
}
--
1.7.8.6
More information about the wayland-devel
mailing list