summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-bsc913x/bsc9131rdb/0001-add-options-to-KBUILD_CFLAGS.patch
blob: b74d5120db533f429cf3d589d56cac46e8a41e3c (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
From: Jerry Pei <jerry.pei@enea.com>
Date: Tue, 10 Jul 2012 11:44:18 +0800
Subject: [PATCH] add options to KBUILD_CFLAGS

Signed-off-by: Jerry Pei <jerry.pei@enea.com>
---
 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