From 84e4935e939471b47aeaeff614ba64eea81c0898 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Sun, 25 Dec 2011 19:27:15 +0200 Subject: Fix ignored fwrite return value warning Fix ignored fwrite return value warning, which apparently could occur sometimes. --- src/usbhid-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c index dab371d..7fdcad3 100644 --- a/src/usbhid-dump.c +++ b/src/usbhid-dump.c @@ -153,7 +153,7 @@ dump(const uhd_iface *iface, buf[1] = xd[b >> 4]; buf[2] = xd[b & 0xF]; - fwrite(buf, ((pos % 16 == 0) ? 4 : 3), 1, stdout); + (void)fwrite(buf, ((pos % 16 == 0) ? 4 : 3), 1, stdout); } if (pos % 16 != 1) -- cgit v1.2.1