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
|
--- xen-4.4.0/Config.mk.orig 2014-04-29 20:54:43.117010822 +0100
+++ xen-4.4.0/Config.mk 2014-04-29 20:58:23.100055325 +0100
@@ -188,6 +188,8 @@
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wstrict-prototypes
+# add temporary build flags to identify build issues using gcc 4.9.0
+CFLAGS += -Wno-error=maybe-uninitialized
# Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
# and is over-zealous with the printf format lint
--- xen-4.4.0/tools/blktap2/drivers/block-qcow.c.orig 2014-03-10 10:43:57.000000000 +0000
+++ xen-4.4.0/tools/blktap2/drivers/block-qcow.c 2014-04-30 21:10:26.270699187 +0100
@@ -427,6 +427,7 @@
if (posix_memalign((void **)&tmp_ptr, 4096, 4096) != 0) {
DPRINTF("ERROR allocating memory for L1 table\n");
+ return -1;
}
memcpy(tmp_ptr, l1_ptr, 4096);
@@ -600,6 +601,7 @@
if (posix_memalign((void **)&tmp_ptr2, 4096, 4096) != 0) {
DPRINTF("ERROR allocating memory for L1 table\n");
+ return -1;
}
memcpy(tmp_ptr2, l2_ptr, 4096);
lseek(s->fd, l2_offset + (l2_sector << 12), SEEK_SET);
|