make/dpdk: Correct compiler type detection
This commit fixes compiler type detection to suppress warnings specific for gcc 10 Change-Id: I66264451792ff84a53001badc7c2f8a452d732af Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> (cherry picked from commit 1415e38411fea0499fc90d6d1af7be75aff0e668) Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5525 Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: <dongx.yi@intel.com>
This commit is contained in:
parent
f71ccc5691
commit
43a94514af
@ -140,7 +140,7 @@ endif
|
||||
# Allow users to specify EXTRA_DPDK_CFLAGS if they want to build DPDK using unsupported compiler versions
|
||||
DPDK_CFLAGS += $(EXTRA_DPDK_CFLAGS)
|
||||
|
||||
ifeq ($(CC),gcc)
|
||||
ifeq ($(CC_TYPE),gcc)
|
||||
GCC_MAJOR = $(shell echo __GNUC__ | $(CC) -E -x c - | tail -n 1)
|
||||
ifeq ($(shell test $(GCC_MAJOR) -ge 10 && echo 1), 1)
|
||||
#1. gcc 10 complains on operations with zero size arrays in rte_cryptodev.c, so
|
||||
|
Loading…
x
Reference in New Issue
Block a user