--- ./tools/python/xen/lowlevel/checkpoint/libcheckpoint.c.orig +++ ./tools/python/xen/lowlevel/checkpoint/libcheckpoint.c @@ -820,12 +820,10 @@ static void stop_suspend_thread(checkpoint_state* s) { - int err; - s->done = 1; - err = sem_post(&s->resumed_sem); + (void)sem_post(&s->resumed_sem); - err = pthread_join(s->suspend_thr, NULL); + (void)pthread_join(s->suspend_thr, NULL); s->suspend_thr = 0; } --- ./tools/python/xen/lowlevel/netlink/libnetlink.c.orig +++ ./tools/python/xen/lowlevel/netlink/libnetlink.c @@ -433,7 +433,7 @@ nladdr.nl_groups = 0; while (1) { - int err, len, type; + int err, len; int l; status = fread(&buf, 1, sizeof(*h), rtnl); @@ -448,7 +448,6 @@ return 0; len = h->nlmsg_len; - type= h->nlmsg_type; l = len - sizeof(*h); if (l<0 || len>sizeof(buf)) {