From a8a5968e345151eb2a448279040825457c7d316c Mon Sep 17 00:00:00 2001 From: Prasad Sodagudi Date: Mon, 22 Jan 2018 16:17:49 -0800 Subject: [PATCH] Makefile: Use cc-option to disable Qualcomm defined features undefined-optimized and tautological and Qualcomm defined features. To disable these compiler options use cc-option instead of disabling directly. Without using cc-options upsteam clang would complain about undefined-optimized and tautological options. Change-Id: I9507600a9286ec6aff42160d2d77733594b891de Signed-off-by: Prasad Sodagudi Signed-off-by: Albert I --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8aa5eaf84170..1b3d3093dc15 100644 --- a/Makefile +++ b/Makefile @@ -833,7 +833,13 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) KBUILD_CFLAGS += $(call cc-disable-warning, gnu) KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier) -KBUILD_CFLAGS += $(call cc-disable-warning, pointer-bool-conversion) +KBUILD_CFLAGS += $(call cc-option, -Wno-undefined-optimized) +KBUILD_CFLAGS += $(call cc-option, -Wno-tautological-constant-out-of-range-compare) +KBUILD_CFLAGS += $(call cc-option, -Wno-sometimes-uninitialized) +KBUILD_CFLAGS += -Wno-asm-operand-widths +KBUILD_CFLAGS += -Wno-initializer-overrides +KBUILD_CFLAGS += -fno-builtin + # Quiet clang warning: comparison of unsigned expression < 0 is always false KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the