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:
Neeraj Upadhyay 2020-03-19 13:34:44 +05:30
parent 0d5fb0ad39
commit 3d60097193

View file

@ -500,6 +500,8 @@ ifneq ($(GCC_TOOLCHAIN),)
CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
endif
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
KBUILD_CFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS)