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 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowle

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:35 +0200
Delivery-date: Thu, 19 May 2011 12:22:55 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832096; l=1119; 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=DSUiN2BGfeVYrMdynmWswjQ7Ll8=; b=Do64LhQGW71BfmQLCw5H7jJdMugsma6HCuDCeojUxZ/J5/NEzpE0eh2ob5ku9h2b2j4 wNeI39YpHBGhnZbAvRuG+VXpz/BowhEu2bLLzU9tsn/7dBVYTzgxVebBUkf8PiHo4b/7S b2+9uwrxZaRfnjYey5PP4zmAhEAEvPj4t4w=
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 1305824399 -7200
# Node ID 166afe5e14106a064c5d63f6a8bc0b87817270bb
# Parent  b1d2f51888e912c2917867f0d23b6b090a95dc2d
gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c

xen/lowlevel/checkpoint/libcheckpoint.c: In function 'stop_suspend_thread':
xen/lowlevel/checkpoint/libcheckpoint.c:823:7: error: variable 'err' set but 
not used [-Werror=unused-but-set-variable]

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

diff -r b1d2f51888e9 -r 166afe5e1410 
tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
--- a/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c      Thu May 19 
18:59:58 2011 +0200
+++ b/tools/python/xen/lowlevel/checkpoint/libcheckpoint.c      Thu May 19 
18:59:59 2011 +0200
@@ -820,12 +820,10 @@ static int create_suspend_thread(checkpo
 
 static void stop_suspend_thread(checkpoint_state* s)
 {
-  int err;
-
   s->done = 1;
 
-  err = sem_post(&s->resumed_sem);
+  sem_post(&s->resumed_sem);
 
-  err = pthread_join(s->suspend_thr, NULL);
+  pthread_join(s->suspend_thr, NULL);
   s->suspend_thr = 0;
 }

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

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