From 3d600971938918084d95593056e9f8f74d86fd6c 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 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 3bb62391daed..805aacc18b81 100644 --- a/Makefile +++ b/Makefile @@ -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)