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

[Xen-devel] libxl compile errors

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] libxl compile errors
From: Andrew Oakley <andrew@xxxxxxxxxxxxxxxxx>
Date: Wed, 12 May 2010 19:44:19 +0100
Delivery-date: Wed, 12 May 2010 11:45:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=A5813AB5
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (X11/20100206)
I'm getting the following errors (within tools/libxl):
> xl.c: In function 'log_callback':
> xl.c:42: error: ignoring return value of 'write', declared with attribute 
> warn_unused_result
> xl_cmdimpl.c: In function 'dolog':
> xl_cmdimpl.c:155: error: ignoring return value of 'write', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c: In function 'parse_config_data':
> xl_cmdimpl.c:503: error: ignoring return value of 'asprintf', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c: In function 'create_domain':
> xl_cmdimpl.c:959: error: ignoring return value of 'asprintf', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c:1083: error: ignoring return value of 'asprintf', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c:1099: error: ignoring return value of 'daemon', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c: In function 'migrate_domain':
> xl_cmdimpl.c:1832: error: ignoring return value of 'asprintf', declared with 
> attribute warn_unused_result
> xl_cmdimpl.c: In function 'main_migrate':
> xl_cmdimpl.c:2168: error: ignoring return value of 'asprintf', declared with 
> attribute warn_unused_result


In this case I guess we should try to continue the write if insufficient
data was written (could happen if the log file was a pipe for example).
 It looks like there are some shared functions for this kind of thin in
libxl_internal.c, but I can't be sure if these should be used and what I
should be passing as ctx.

There may be more of these, I've just turned -Werror off to get it to
build for now.  I think the warnings are created by recent versions libc
(or at least the headers).  I'm using glibc-2.10.1 and gcc-4.3.4.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] libxl compile errors, Andrew Oakley <=