WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

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

<Prev in Thread] Current Thread [Next in Thread>