aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/gcc5-cflags.patch
blob: d8e0bcdac2527281415ebe14432fa140688285ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
gcc5 gives array-bounds warning on xen/common/symbols.c
     also maybe-uninitialized warning on xen/xsm/flask/ss/policydb.c

--- xen-4.5.0/xen/common/Makefile.orig	2015-01-12 16:53:24.000000000 +0000
+++ xen-4.5.0/xen/common/Makefile	2015-02-14 15:40:29.722759007 +0000
@@ -72,3 +72,5 @@
 
 subdir-y += libelf
 subdir-$(HAS_DEVICE_TREE) += libfdt
+
+CFLAGS += -Wno-error=array-bounds
--- xen-4.5.0/xen/xsm/flask/Makefile.orig	2015-01-12 16:53:24.000000000 +0000
+++ xen-4.5.0/xen/xsm/flask/Makefile	2015-02-14 16:49:54.376183206 +0000
@@ -5,6 +5,7 @@
 subdir-y += ss
 
 CFLAGS += -I./include
+CFLAGS += -Wno-error=maybe-uninitialized
 
 AWK = awk