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 20 of 45] gcc-4.6 compile fix: xen/common/kexec.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 20 of 45] gcc-4.6 compile fix: xen/common/kexec.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:39 +0200
Delivery-date: Thu, 19 May 2011 12:26:11 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832133; l=807; 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=bRM13dGFFfeF+bjaW/N5OX5qBw4=; b=ZdGC916c/3YNd6rXw5iCJ+PPvq0BVljeUbnzmk4W+bZjivq79Dngc+67jxqJdSx/BgV g4A8bLoezxO+kdqZIfSJW9qRJrdZ8hvhk3s0C2VPdAegokFgLz+eH2dz8vxvqSD27w91H tWJSUWlGDKlcrml9cmwsW3WtUL6p7OgRDjI=
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 1305824404 -7200
# Node ID 3317bd7aa9150894d21538700702ddefc19a5b50
# Parent  5516ec1f996e50d65051441e98674ee8cb799a48
gcc-4.6 compile fix: xen/common/kexec.c

kexec.c: In function 'kexec_exec':
kexec.c:566:25: error: variable 'ret' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 5516ec1f996e -r 3317bd7aa915 xen/common/kexec.c
--- a/xen/common/kexec.c        Thu May 19 19:00:03 2011 +0200
+++ b/xen/common/kexec.c        Thu May 19 19:00:04 2011 +0200
@@ -588,7 +588,7 @@ static int kexec_exec(XEN_GUEST_HANDLE(v
         break;
     }
 
-    return -EINVAL; /* never reached */
+    return ret; /* never reached */
 }
 
 int do_kexec_op_internal(unsigned long op, XEN_GUEST_HANDLE(void) uarg,

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

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