From ac4b20a4503bd4e95f02eacff749d2cd1400d121 Mon Sep 17 00:00:00 2001 From: Neeraj Upadhyay Date: Thu, 19 Mar 2020 13:34:44 +0530 Subject: [PATCH] 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 Signed-off-by: Srinivasarao P --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5a9582dd4994..2504c918f4bf 100644 --- a/Makefile +++ b/Makefile @@ -552,6 +552,8 @@ KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) 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) else