diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 17:36:38 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 17:36:38 +0100 |
commit | 2a7348129a42f21095fcd62e47a035f78d254130 (patch) | |
tree | 544dc8019a8f8cb684ace8674193605e607f9964 /recipes-kernel/linux/files/add-no-unused-but-set-variable.patch | |
download | meta-enea-2a7348129a42f21095fcd62e47a035f78d254130.tar.gz |
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-kernel/linux/files/add-no-unused-but-set-variable.patch')
-rw-r--r-- | recipes-kernel/linux/files/add-no-unused-but-set-variable.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/add-no-unused-but-set-variable.patch b/recipes-kernel/linux/files/add-no-unused-but-set-variable.patch new file mode 100644 index 0000000..5133529 --- /dev/null +++ b/recipes-kernel/linux/files/add-no-unused-but-set-variable.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | diff --git a/Makefile b/Makefile | ||
2 | index e821f72..cb2fcba 100644 | ||
3 | --- a/Makefile | ||
4 | +++ b/Makefile | ||
5 | @@ -526,6 +526,8 @@ endif # $(dot-config) | ||
6 | # Defaults vmlinux but it is usually overridden in the arch makefile | ||
7 | all: vmlinux | ||
8 | |||
9 | +KBUILD_CFLAGS += -Wno-unused-but-set-variable | ||
10 | + | ||
11 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE | ||
12 | KBUILD_CFLAGS += -Os | ||
13 | else | ||