From: Jerry Pei Date: Tue, 10 Jul 2012 11:44:18 +0800 Subject: [PATCH] add options to KBUILD_CFLAGS Signed-off-by: Jerry Pei --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e19c848..b07ce1e 100644 --- a/Makefile +++ b/Makefile @@ -526,6 +526,8 @@ endif # $(dot-config) # Defaults vmlinux but it is usually overridden in the arch makefile all: vmlinux +KBUILD_CFLAGS += -Wno-unused-but-set-variable -Wno-error=array-bounds + ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os else -- 1.7.9.5