From f3667108657afd1a40e3afda50908b2cd7dc082b Mon Sep 17 00:00:00 2001 From: Mauro Ribeiro Date: Wed, 15 Oct 2014 02:50:59 -0300 Subject: [PATCH] Makefile: those hacks are needed to build AMLogic drivers on newer GCC's Change-Id: Ieb4ba65c33a672552b4ca96e9bbdd6729ba85379 Signed-off-by: Dongjin Kim --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 629bdc273e8c..ea769784437b 100755 --- a/Makefile +++ b/Makefile @@ -373,21 +373,16 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ -Wno-format-security \ - -fno-delete-null-pointer-checks \ - -Werror + -fno-delete-null-pointer-checks + KBUILD_CFLAGS += -Werror=enum-compare \ -Werror=comment \ -Werror=implicit-int \ -Werror=missing-braces \ -Werror=unused-value \ - -Werror=maybe-uninitialized \ - -Werror=unused-variable \ -Werror=format \ - -Werror=unused-function \ -Werror=switch \ -Werror=strict-prototypes \ - -Werror=declaration-after-statement \ - -Werror=uninitialized \ -Werror=unused-label \ -Werror=undef \ -Werror=unused-result \ @@ -596,7 +591,7 @@ all: vmlinux ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) else -KBUILD_CFLAGS += -O2 +KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,) endif include $(srctree)/arch/$(SRCARCH)/Makefile