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] [PATCH 13 of 45] gcc-4.6 compile fix: tools/libxl/libxl_dom.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 13 of 45] gcc-4.6 compile fix: tools/libxl/libxl_dom.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:32 +0200
Delivery-date: Thu, 19 May 2011 12:20:09 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832068; l=1064; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=e27dt3+lvYKkqCCVFiEO1cbEs1Y=; b=kahf28j0xx3G0vrkiWY0Vjmkj9x5C1n2KxPGzyEsT/KycuInyJz170efal1yW2alNd/ 5W4lgFiaLzGNqotlkX0WTFNzCihM9CpDINw+x6rf/FlbGzTdByTGJVCp5prrDpIRBK9Ku r03ouDn0CwyktPtabB3ZhORJ+Xlb3G+27w8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
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>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824396 -7200
# Node ID 2a87e67af2c83fe17f3860afd85b9ae7413317cb
# Parent  a096a1358c6c4701d44f1467ccc36cf422ffb6a7
gcc-4.6 compile fix: tools/libxl/libxl_dom.c

libxl_dom.c: In function 'libxl__build_hvm':
libxl_dom.c:284:14: error: variable 'rc' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r a096a1358c6c -r 2a87e67af2c8 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Thu May 19 18:59:54 2011 +0200
+++ b/tools/libxl/libxl_dom.c   Thu May 19 18:59:56 2011 +0200
@@ -281,7 +281,7 @@ int libxl__build_hvm(libxl__gc *gc, uint
               libxl_domain_build_info *info, libxl__domain_build_state *state)
 {
     libxl_ctx *ctx = libxl__gc_owner(gc);
-    int ret, rc = ERROR_INVAL;
+    int ret, rc;
 
     rc = ERROR_FAIL;
     ret = xc_hvm_build_target_mem(
@@ -302,7 +302,7 @@ int libxl__build_hvm(libxl__gc *gc, uint
     }
     rc = 0;
 out:
-    return 0;
+    return rc;
 }
 
 int libxl__domain_restore_common(libxl__gc *gc, uint32_t domid,

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

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