From 168ed72dc776137234878c669f3efdbcab65ef0e Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 3 Aug 2012 14:39:14 +0300 Subject: [PATCH] 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 --- src/evdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index 09275f44..7d935642 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 */ } }