Skip to content
Commit 320e48c9 authored by Adam Jackson's avatar Adam Jackson
Browse files

dmx: Silence an unused-result warning



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: default avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
(cherry picked from commit 17ad6e5d)
parent c5d409a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment