* commit '13baa3192149a8a1de5885c8a85f95155ff5d83d': Make some warnings impossible to override.
This commit is contained in:
commit
9ddc52c1e4
3 changed files with 17 additions and 1 deletions
|
@ -119,6 +119,12 @@ COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG
|
|||
COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo -std=gnu++11
|
||||
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
|
||||
|
||||
GLOBAL_CFLAGS_NO_OVERRIDE := \
|
||||
-Werror=int-to-pointer-cast \
|
||||
-Werror=pointer-to-int-cast \
|
||||
|
||||
GLOBAL_CPPFLAGS_NO_OVERRIDE :=
|
||||
|
||||
# Set the extensions used for various packages
|
||||
COMMON_PACKAGE_SUFFIX := .zip
|
||||
COMMON_JAVA_PACKAGE_SUFFIX := .jar
|
||||
|
|
|
@ -990,6 +990,8 @@ $(hide) $(PRIVATE_CXX) \
|
|||
$(PRIVATE_CFLAGS) \
|
||||
$(PRIVATE_CPPFLAGS) \
|
||||
$(PRIVATE_DEBUG_CFLAGS) \
|
||||
$(GLOBAL_CFLAGS_NO_OVERRIDE) \
|
||||
$(GLOBAL_CPPFLAGS_NO_OVERRIDE) \
|
||||
-MD -MF $(patsubst %.o,%.d,$@) -o $@ $<
|
||||
$(transform-d-to-p)
|
||||
endef
|
||||
|
@ -1022,7 +1024,11 @@ endef
|
|||
|
||||
define transform-c-to-o-no-deps
|
||||
@echo "target $(PRIVATE_ARM_MODE) C: $(PRIVATE_MODULE) <= $<"
|
||||
$(call transform-c-or-s-to-o-no-deps, $(PRIVATE_CFLAGS) $(PRIVATE_CONLYFLAGS) $(PRIVATE_DEBUG_CFLAGS))
|
||||
$(call transform-c-or-s-to-o-no-deps, \
|
||||
$(PRIVATE_CFLAGS) \
|
||||
$(PRIVATE_CONLYFLAGS) \
|
||||
$(PRIVATE_DEBUG_CFLAGS) \
|
||||
$(GLOBAL_CFLAGS_NO_OVERRIDE))
|
||||
endef
|
||||
|
||||
define transform-s-to-o-no-deps
|
||||
|
|
|
@ -267,6 +267,10 @@ _product_stash_var_list += \
|
|||
WITH_DEXPREOPT \
|
||||
WITH_DEXPREOPT_BOOT_IMG_ONLY
|
||||
|
||||
_product_stash_var_list += \
|
||||
GLOBAL_CFLAGS_NO_OVERRIDE \
|
||||
GLOBAL_CPPFLAGS_NO_OVERRIDE \
|
||||
|
||||
#
|
||||
# Stash values of the variables in _product_stash_var_list.
|
||||
# $(1): Renamed prefix
|
||||
|
|
Loading…
Reference in a new issue