From f508f50a5ea24eb68744789d2dad8769f5b058d8 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Wed, 8 Jan 2020 00:31:20 +0800 Subject: [PATCH] vhost: disable Waddress-of-packed-member for internal vhost library When using internal vhost library, there is a warning information: taking address of packed member of class or structure may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]. DPDK disable this check by default, so we will do it same for internal vhost library. Change-Id: I6fb12d5f5339ccb03bb85196f9c100d0521e4620 Signed-off-by: Changpeng Liu Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479501 Community-CI: SPDK CI Jenkins Community-CI: Broadcom SPDK FC-NVMe CI Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki --- lib/rte_vhost/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rte_vhost/Makefile b/lib/rte_vhost/Makefile index ca7abb3a6..5a42ed390 100644 --- a/lib/rte_vhost/Makefile +++ b/lib/rte_vhost/Makefile @@ -37,6 +37,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk CFLAGS += -I. CFLAGS += $(ENV_CFLAGS) CFLAGS += -include rte_config.h +CFLAGS += -Wno-address-of-packed-member # These are the DPDK vhost files copied (for now) into SPDK C_SRCS += fd_man.c socket.c vhost_user.c vhost.c