umbim: supress warning about pointers to members of a packed struct in gcc9

This commit is contained in:
ElonH 2020-04-16 19:47:46 +08:00 committed by CN_SZTL
parent 0a3f6069c1
commit 0898c0cb6f
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -36,6 +36,10 @@ endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
# Disable GCC 9 warning about pointers to members of a packed struct
GCCV_GE = $(filter $(1),$(shell echo -e "$(1)\n$(GCCV)" | sort -V | head -n1))
TARGET_CFLAGS += $(if $(call GCCV_GE,9),-Wno-address-of-packed-member)
TARGET_LDFLAGS += -Wl,--gc-sections
define Package/umbim/install