Author: nbd Date: 2015-11-10 13:04:09 +0100 (Tue, 10 Nov 2015) New Revision: 47440
Modified: trunk/rules.mk Log: build: add -Wno-error=unused-result to target cflags Many glibc functions have __warn_unused_result__ in so many different core functions, and failing the build for all of those simply does not make any sense Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/rules.mk =================================================================== --- trunk/rules.mk 2015-11-10 12:04:04 UTC (rev 47439) +++ trunk/rules.mk 2015-11-10 12:04:09 UTC (rev 47440) @@ -143,7 +143,7 @@ -include $(TOOLCHAIN_DIR)/info.mk export GCC_HONOUR_COPTS:=0 TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) - TARGET_CFLAGS+= -fhonour-copts -Wno-error=unused-but-set-variable + TARGET_CFLAGS+= -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include ifeq ($(CONFIG_USE_MUSL),y) TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/include/fortify _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
