diff options
| author | Prasad Sodagudi <psodagud@codeaurora.org> | 2018-01-22 16:17:49 -0800 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-06-15 22:28:36 +0300 |
| commit | 07705c618bbbaee84a286185fa34fea7ff0a324b (patch) | |
| tree | 02de956c636de5179d08930375130638d7513db0 /Makefile | |
| parent | 08e780103611fb2be36c17ff80de6cb54c910dd0 (diff) | |
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 <psodagud@codeaurora.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -734,8 +734,8 @@ KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) KBUILD_CFLAGS += $(call cc-disable-warning, gnu) KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier) -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 KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) |
