aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xen-gcc-4.6-Werror-fix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-16 09:43:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-16 09:43:01 +0000
commit13b5b3e08665b71cf0db34ae6252faef573c5b19 (patch)
treee08a961590d9323cf9a53c7b497aa6d8cb8729f8 /main/xen/xen-gcc-4.6-Werror-fix.patch
parente0209bd61fd23da927ed547933c508692e8125b1 (diff)
downloadaports-13b5b3e08665b71cf0db34ae6252faef573c5b19.tar.bz2
aports-13b5b3e08665b71cf0db34ae6252faef573c5b19.tar.xz
main/xen: enable x86
Diffstat (limited to 'main/xen/xen-gcc-4.6-Werror-fix.patch')
-rw-r--r--main/xen/xen-gcc-4.6-Werror-fix.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/xen/xen-gcc-4.6-Werror-fix.patch b/main/xen/xen-gcc-4.6-Werror-fix.patch
new file mode 100644
index 0000000000..b04ae9cae8
--- /dev/null
+++ b/main/xen/xen-gcc-4.6-Werror-fix.patch
@@ -0,0 +1,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)) {