[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 14 of 18] tools/libvchan: fix build errors caused by Werror in io.c
Olaf Hering writes ("[PATCH 14 of 18] tools/libvchan: fix build errors caused by Werror in io.c"): > tools/libvchan: fix build errors caused by Werror in io.c ... > io.c:196: warning: ignoring return value of 'writev', declared with attribute > warn_unused_result ... > - writev(-1, iov, 2); > + /* Silence gcc warning, will always fail */ > + if (writev(-1, iov, 2)); I still think this is an unpleasant idiom. Does casting the result to void not help ? Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |