Commit b61e2479 authored by Tomasz Kulasek's avatar Tomasz Kulasek Committed by Tomasz Zawadzki
Browse files

sock/vpp: fix compilation with gcc9

parent c5911f02
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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