diff --git a/core/Makefile b/core/Makefile index 9b7bbe7ec0..75269a16e6 100644 --- a/core/Makefile +++ b/core/Makefile @@ -694,8 +694,8 @@ $(WALL_WERROR): @rm -f $@ echo "# Modules using -Wno-error" >> $@ for m in $(sort $(SOONG_MODULES_USING_WNO_ERROR) $(MODULES_USING_WNO_ERROR)); do echo $$m >> $@; done - echo "# Modules added default -Wall" >> $@ - for m in $(sort $(SOONG_MODULES_ADDED_WALL) $(MODULES_ADDED_WALL)); do echo $$m >> $@; done + echo "# Modules that allow warnings" >> $@ + for m in $(sort $(SOONG_MODULES_WARNINGS_ALLOWED) $(MODULES_WARNINGS_ALLOWED)); do echo $$m >> $@; done $(call declare-0p-target,$(WALL_WERROR)) diff --git a/core/binary.mk b/core/binary.mk index 665270e30a..3f32fa90b6 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -1506,7 +1506,7 @@ ifneq (HEADER_LIBRARIES,$(LOCAL_MODULE_CLASS)) ifeq (,$(strip $(call find_warning_allowed_projects,$(LOCAL_PATH)))) my_cflags := -Wall -Werror $(my_cflags) else - $(eval MODULES_ADDED_WALL := $(MODULES_ADDED_WALL) $(LOCAL_MODULE_MAKEFILE):$(LOCAL_MODULE)) + $(eval MODULES_WARNINGS_ALLOWED := $(MODULES_USING_WNO_ERROR) $(LOCAL_MODULE_MAKEFILE):$(LOCAL_MODULE)) my_cflags := -Wall $(my_cflags) endif endif