Makefile: Suppress few warnings with clang
Enable -Wno-misleading-indentation -Wno-bool-operation options to suppress these warnings on clang compilation. Change-Id: I018b992d126d710cd3548a87287dc5c681cfe400 Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
This commit is contained in:
parent
0d5fb0ad39
commit
3d60097193
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -500,6 +500,8 @@ ifneq ($(GCC_TOOLCHAIN),)
|
||||||
CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
|
CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
|
||||||
endif
|
endif
|
||||||
CLANG_FLAGS += -no-integrated-as
|
CLANG_FLAGS += -no-integrated-as
|
||||||
|
CLANG_FLAGS += $(call cc-option, -Wno-misleading-indentation)
|
||||||
|
CLANG_FLAGS += $(call cc-option, -Wno-bool-operation)
|
||||||
CLANG_FLAGS += -Werror=unknown-warning-option
|
CLANG_FLAGS += -Werror=unknown-warning-option
|
||||||
KBUILD_CFLAGS += $(CLANG_FLAGS)
|
KBUILD_CFLAGS += $(CLANG_FLAGS)
|
||||||
KBUILD_AFLAGS += $(CLANG_FLAGS)
|
KBUILD_AFLAGS += $(CLANG_FLAGS)
|
||||||
|
|
Loading…
Reference in a new issue