summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeeraj Upadhyay <neeraju@codeaurora.org>2020-07-07 12:58:46 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-07-10 04:33:24 -0700
commitecff797dc5f0a22f7db9c60040207df44985b6bf (patch)
treef46266248ef0b2803ee45f472038a05e30e114b7
parentaebfc8bc51aa5905daacdfa3fdbf881cbac80a79 (diff)
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> Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b212077c73d..81171f9cfadd 100644
--- a/Makefile
+++ b/Makefile
@@ -632,6 +632,8 @@ CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
endif
CLANG_FLAGS += -no-integrated-as
CLANG_FLAGS += -Werror=unknown-warning-option
+CLANG_FLAGS += $(call cc-option, -Wno-misleading-indentation)
+CLANG_FLAGS += $(call cc-option, -Wno-bool-operation)
KBUILD_CFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS)
endif