aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xen-gcc-4.6-Werror-fix.patch
blob: b04ae9cae8b95609322ec6eb9c9e2380434d0f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- ./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)) {