Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Commit

Permalink
Makefile: Use cc-option to disable Qualcomm defined features
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Albert I <[email protected]>
  • Loading branch information
Prasad Sodagudi authored and johnmart19 committed Feb 10, 2021
1 parent 11fdd50 commit a8a5968
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8a5968

Please sign in to comment.