summaryrefslogtreecommitdiffstats
path: root/openpower/package/hostboot/0007-Disable-warnings-that-crop-up-a-lot-with-GCC6.patch
blob: e8def566a8fe73be8e223392bfed8b08cd731e01 (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
37
38
39
40
41
42
43
44
45
46
47
From 6f008e0bfdfbc9256f18ea0939dfc11d23348675 Mon Sep 17 00:00:00 2001
From: Stewart Smith <stewart@linux.vnet.ibm.com>
Date: Thu, 2 Mar 2017 16:15:25 +1100
Subject: [PATCH] Disable warnings that crop up a lot with GCC6

NOTE: THIS IS A TERRIBLE IDEA

Instead, Hostboot developers should go and fix their code.

Change-Id: I3e1da9f61ff442e49f143f51ccfc3c7c018beb1f
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 src/build/mkrules/cflags.env.mk | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
index 6bb900288388..428de9326400 100644
--- a/src/build/mkrules/cflags.env.mk
+++ b/src/build/mkrules/cflags.env.mk
@@ -5,7 +5,7 @@
 #
 # OpenPOWER HostBoot Project
 #
-# Contributors Listed Below - COPYRIGHT 2013,2016
+# Contributors Listed Below - COPYRIGHT 2013,2017
 # [+] Google Inc.
 # [+] International Business Machines Corp.
 #
@@ -40,11 +40,13 @@ endif
 
 COMMONFLAGS += $(OPT_LEVEL) -nostdlib
 CFLAGS += $(COMMONFLAGS) -mcpu=power7 -nostdinc -g -mno-vsx -mno-altivec\
-          -Wall -Werror -mtraceback=no -pipe -mabi=elfv1 \
+          -Wall -mtraceback=no -pipe -mabi=elfv1 \
+          -Wno-error=sizeof-array-argument \
+          -Wno-error=unused-function \
 	  -ffunction-sections -fdata-sections -ffreestanding -mbig-endian
 ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian -ffreestanding -mabi=elfv1
 CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall \
-	    -fuse-cxa-atexit -std=gnu++14
+	    -fuse-cxa-atexit -std=gnu++14 -fpermissive
 LDFLAGS += --nostdlib --sort-common -EB $(COMMONFLAGS)
 
 INCFLAGS = $(addprefix -I, $(INCDIR) )
-- 
2.9.4

OpenPOWER on IntegriCloud