sock/vpp: fix compilation with gcc9
Change-Id: Ia48a59807047ea2ab5103638fb49bfea9446f854 Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1084 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
c5911f0224
commit
b61e2479f5
@ -38,6 +38,13 @@ C_SRCS += vpp.c
|
||||
CFLAGS += -Wno-sign-compare -Wno-error=old-style-definition
|
||||
CFLAGS += -Wno-error=strict-prototypes -Wno-error=ignored-qualifiers
|
||||
|
||||
GCC_VERSION=$(shell $(CC) -dumpversion | cut -d. -f1)
|
||||
|
||||
# disable packed member unalign warnings
|
||||
ifeq ($(shell test $(GCC_VERSION) -ge 9 && echo 1), 1)
|
||||
CFLAGS += -Wno-error=address-of-packed-member
|
||||
endif
|
||||
|
||||
LIBNAME = sock_vpp
|
||||
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|
||||
|
Loading…
Reference in New Issue
Block a user