[Libvir] [PATCH] Fix warn_unused_result when compiling with latest glibc

Richard W.M. Jones rjones at redhat.com
Mon Mar 26 15:22:33 UTC 2007


Daniel Veillard wrote:
> On Mon, Mar 26, 2007 at 03:39:51PM +0100, Richard W.M. Jones wrote:
>> I'm not sure if this is the right way to solve this, but it is a way.
> 
>   we should test the return value to check for an error there, the 
> unfortunate thing is that since we are in a signal handler there isn't
> much we can do, I suggest to increment a global variable (which could
> for example be checked if we hit that problem by some other code in
> the main loop).
>   Other ideas ?

How about this patch.  It implements your suggestion.

Rich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-warn_unused_result-20070326-2.patch
Type: text/x-patch
Size: 1475 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070326/5224f383/attachment-0001.bin>


More information about the libvir-list mailing list