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
parent ed16ac3991
commit 6099fdc34d
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C

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