|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Check some returns of common functions
On 26 Apr 2006, at 20:02, Aron Griffis wrote:
The following might be clearer than doing the workaround in-place
though:
#define ignore_retval(x) do { long __r; __r = (long)(x); } while (0)
How is a custom wrapper clearer than (void), which is generally
recognized as intentionally ignoring the return value?
Good point, except that casting the result to void does not avoid the
warning/error in this particular case so we have to pick a less
attractive workaround.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|