diff options
| author | Prasad Sodagudi <psodagud@codeaurora.org> | 2017-10-02 15:19:57 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-04-24 02:58:23 -0700 |
| commit | 2ba37a00a2a2353e2929e48c789a7f6a38463ef1 (patch) | |
| tree | 8e0af9fe659e822f528f80aabce9dced2e682e52 | |
| parent | c86259270d579f727da6fc1f6ca189a7f58b7f1f (diff) | |
Makefile: Disable undefined-optimized and tautological features
Wundefined-optimized option was introduced by Qualcomm,
but there are other options in kernel to test
undefined behavior. So disable undefined-optimized feature
by adding -Wno-undefined-optimized to CFLAGS. Also
tautological-constant-out-of-range-compare is not getting
disabled with tautological-compare option disable, so disable
tautological-constant-out-of-range-compare feature explicitly.
Change-Id: Ifc76f12323f3b5f6e1dd5ea4b75691bc2f3f8504
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
| -rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -734,6 +734,9 @@ 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 + # 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 |
