[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |