blob: e8def566a8fe73be8e223392bfed8b08cd731e01 [file] [log] [blame]
Stewart Smith21f00b62017-03-02 17:32:33 +11001From 6f008e0bfdfbc9256f18ea0939dfc11d23348675 Mon Sep 17 00:00:00 2001
2From: Stewart Smith <stewart@linux.vnet.ibm.com>
3Date: Thu, 2 Mar 2017 16:15:25 +1100
4Subject: [PATCH] Disable warnings that crop up a lot with GCC6
5
6NOTE: THIS IS A TERRIBLE IDEA
7
8Instead, Hostboot developers should go and fix their code.
9
10Change-Id: I3e1da9f61ff442e49f143f51ccfc3c7c018beb1f
11Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
12---
13 src/build/mkrules/cflags.env.mk | 8 +++++---
14 1 file changed, 5 insertions(+), 3 deletions(-)
15
16diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
17index 6bb900288388..428de9326400 100644
18--- a/src/build/mkrules/cflags.env.mk
19+++ b/src/build/mkrules/cflags.env.mk
20@@ -5,7 +5,7 @@
21 #
22 # OpenPOWER HostBoot Project
23 #
24-# Contributors Listed Below - COPYRIGHT 2013,2016
25+# Contributors Listed Below - COPYRIGHT 2013,2017
26 # [+] Google Inc.
27 # [+] International Business Machines Corp.
28 #
29@@ -40,11 +40,13 @@ endif
30
31 COMMONFLAGS += $(OPT_LEVEL) -nostdlib
32 CFLAGS += $(COMMONFLAGS) -mcpu=power7 -nostdinc -g -mno-vsx -mno-altivec\
33- -Wall -Werror -mtraceback=no -pipe -mabi=elfv1 \
34+ -Wall -mtraceback=no -pipe -mabi=elfv1 \
35+ -Wno-error=sizeof-array-argument \
36+ -Wno-error=unused-function \
37 -ffunction-sections -fdata-sections -ffreestanding -mbig-endian
38 ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian -ffreestanding -mabi=elfv1
39 CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall \
40- -fuse-cxa-atexit -std=gnu++14
41+ -fuse-cxa-atexit -std=gnu++14 -fpermissive
42 LDFLAGS += --nostdlib --sort-common -EB $(COMMONFLAGS)
43
44 INCFLAGS = $(addprefix -I, $(INCDIR) )
45--
462.9.4
47