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 <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479501 Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
2020418f2b
commit
f508f50a5e
@ -37,6 +37,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|||||||
CFLAGS += -I.
|
CFLAGS += -I.
|
||||||
CFLAGS += $(ENV_CFLAGS)
|
CFLAGS += $(ENV_CFLAGS)
|
||||||
CFLAGS += -include rte_config.h
|
CFLAGS += -include rte_config.h
|
||||||
|
CFLAGS += -Wno-address-of-packed-member
|
||||||
|
|
||||||
# These are the DPDK vhost files copied (for now) into SPDK
|
# These are the DPDK vhost files copied (for now) into SPDK
|
||||||
C_SRCS += fd_man.c socket.c vhost_user.c vhost.c
|
C_SRCS += fd_man.c socket.c vhost_user.c vhost.c
|
||||||
|
Loading…
Reference in New Issue
Block a user