Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 716b72ac authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

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: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent b4695fbf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -722,8 +722,8 @@ KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier)
KBUILD_CFLAGS += -Wno-asm-operand-widths
KBUILD_CFLAGS += -Wno-initializer-overrides
KBUILD_CFLAGS += -fno-builtin
KBUILD_CFLAGS += -Wno-undefined-optimized
KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare
KBUILD_CFLAGS += $(call cc-option, -Wno-undefined-optimized)
KBUILD_CFLAGS += $(call cc-option, -Wno-tautological-constant-out-of-range-compare)

# Quiet clang warning: comparison of unsigned expression < 0 is always false