Stewart Smith | 21f00b6 | 2017-03-02 17:32:33 +1100 | [diff] [blame] | 1 | From 6f008e0bfdfbc9256f18ea0939dfc11d23348675 Mon Sep 17 00:00:00 2001 |
| 2 | From: Stewart Smith <stewart@linux.vnet.ibm.com> |
| 3 | Date: Thu, 2 Mar 2017 16:15:25 +1100 |
| 4 | Subject: [PATCH] Disable warnings that crop up a lot with GCC6 |
| 5 | |
| 6 | NOTE: THIS IS A TERRIBLE IDEA |
| 7 | |
| 8 | Instead, Hostboot developers should go and fix their code. |
| 9 | |
| 10 | Change-Id: I3e1da9f61ff442e49f143f51ccfc3c7c018beb1f |
| 11 | Signed-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 | |
| 16 | diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk |
| 17 | index 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 | -- |
| 46 | 2.9.4 |
| 47 | |