|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Check some returns of common functions
On 26 Apr 2006, at 09:29, Ewan Mellor wrote:
Does (void)write(tracefd, sbuf, ref) not work? This ought to make it
clear
that the return value is being ignored without additional dummy
variables.
No. That would be too obvious and useful!
The following might be clearer than doing the workaround in-place
though:
#define ignore_retval(x) do { long __r; __r = (long)(x); } while (0)
(Most useful scalar types can be cast to/from long.)
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|