[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] warn_unused_result fixes



More fixes prompted by gcc's warn_unused_result, in the tools directory.

Note that some of the existing error checking for asprintf was wrong for Linux. 
 asprintf in glibc returns -1 on error, but leaves the pointer uninitialized.  
Only the BSDs zero out the pointer on error.

Also, while fixing these warnings I saw several error paths that were 
incorrect.  This patch minimally fixes the warn_unused_result; more complete 
error path cleanup will be a later patch.


Please apply to xen-unstable.

Signed-off-by:  Charles Coffing <ccoffing@xxxxxxxxxx>

Attachment: warn-unused-result.diff
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.