Hi,
Is there anyone who tried compiling VPP with GCC 7?
There's fall-through warning from DPDK code, but there's already FALLTHROUGH
comments in DPDK code to suppress the warning and -Wimplicit-fallthrough=2 in
DPDK makefile, but somehow I'm still getting the warnings when compiling VPP.
I have to add an option of -Wimplicit-fallthrough=0 or
-Wno-implicit-fallthrough to get the compiling pass, but it seems unreasonable.
gcc -Wp,-MD,./.ark_ethdev_rx.o.d.tmp -pie -fPIC -pthread
-march=armv8-a+crc+crypto -DRTE_MACHINE_CPUFLAG_NEON
-DRTE_MACHINE_CPUFLAG_CRC32 -DRTE_MACHINE_CPUFLAG_AES
-DRTE_MACHINE_CPUFLAG_PMULL -DRTE_MACHINE_CPUFLAG_SHA1
-DRTE_MACHINE_CPUFLAG_SHA2
-I/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/arm64-armv8a-linuxapp-gcc/include
-include
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/arm64-armv8a-linuxapp-gcc/include/rte_config.h
-O3 -I./ -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
-Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
-Wwrite-strings -Wdeprecated -Wimplicit-fallthrough=2 -Wno-format-truncation
-Werror -Wimplicit-fallthrough=2 -g -mtune=generic -Wimplicit-fallthrough=1
-save-temps -o ark_ethdev_rx.o -c
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:
In function 'eth_ark_rx_seed_mbufs':
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:503:9:
error: this statement may fall through [-Werror=implicit-fallthrough=]
count++;
~~~~~^~
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:505:2:
note: here
case 3:
^~~~
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:508:8:
error: this statement may fall through [-Werror=implicit-fallthrough=]
count++;
~~~~~^~
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:510:2:
note: here
case 2:
^~~~
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:513:8:
error: this statement may fall through [-Werror=implicit-fallthrough=]
count++;
~~~~~^~
/home/lijian/dpdk/vpp/build-root/build-vpp-native/dpdk/dpdk-18.05/drivers/net/ark/ark_ethdev_rx.c:515:2:
note: here
case 1:
^~~~
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10084): https://lists.fd.io/g/vpp-dev/message/10084
Mute This Topic: https://lists.fd.io/mt/24238136/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-