[PATCH xserver 06/12] dmx: Silence an unused-result warning

Keith Packard keithp at keithp.com
Fri Jun 16 20:27:28 UTC 2017

Adam Jackson <ajax at redhat.com> writes:

> Modern glibc is very insistent that you care about whether write()
> succeeds:
> ../hw/dmx/input/usb-keyboard.c: In function ‘kbdUSBCtrl’:
> ../hw/dmx/input/usb-keyboard.c:292:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
>          write(priv->fd, &event, sizeof(event));
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Signed-off-by: Adam Jackson <ajax at redhat.com>

Reviewed-by: Keith Packard <keithp at keithp.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170616/a9999d94/attachment.sig>

More information about the xorg-devel mailing list