drivers/net: fix icc deprecated parameter warning
With icc (ICC) 18.0.1 20171018, -wd usage generates following warning: icc: command line remark #10010: option '-wd3656' is deprecated and will be removed in a future release. See '-help deprecated' "icc -help deprecated" output is: -wd use -diag-disable Based on above information "-wd" converted to "-diag-disable" Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Tested-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
f87ce336a8
commit
f16d0b36f8
@ -18,7 +18,7 @@ EXPORT_MAP := rte_pmd_bnx2x_version.map
|
||||
LIBABIVER := 1
|
||||
|
||||
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
CFLAGS += -wd188 #188: enumerated type mixed with another type
|
||||
CFLAGS += -diag-disable 188 #188: enumerated type mixed with another type
|
||||
endif
|
||||
|
||||
#
|
||||
|
@ -22,7 +22,7 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
#
|
||||
# CFLAGS for icc
|
||||
#
|
||||
CFLAGS_BASE_DRIVER = -wd188
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 188
|
||||
else
|
||||
#
|
||||
# CFLAGS for gcc/clang
|
||||
|
@ -22,7 +22,8 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
#
|
||||
# CFLAGS for icc
|
||||
#
|
||||
CFLAGS_BASE_DRIVER = -wd177 -wd181 -wd188 -wd869 -wd2259
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 177 -diag-disable 181 -diag-disable 188
|
||||
CFLAGS_BASE_DRIVER += -diag-disable 869 -diag-disable 2259
|
||||
else
|
||||
#
|
||||
# CFLAGS for gcc/clang
|
||||
|
@ -19,7 +19,8 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
#
|
||||
# CFLAGS for icc
|
||||
#
|
||||
CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 174 -diag-disable 593 -diag-disable 869
|
||||
CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
|
||||
|
||||
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
||||
|
||||
|
@ -24,7 +24,7 @@ LIBABIVER := 2
|
||||
# to disable warnings
|
||||
#
|
||||
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
CFLAGS_BASE_DRIVER = -wd593 -wd188
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 593 -diag-disable 188
|
||||
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
||||
CFLAGS_BASE_DRIVER += -Wno-sign-compare
|
||||
CFLAGS_BASE_DRIVER += -Wno-unused-value
|
||||
|
@ -20,9 +20,10 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
#
|
||||
# CFLAGS for icc
|
||||
#
|
||||
CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 174 -diag-disable 593 -diag-disable 869
|
||||
CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
|
||||
|
||||
CFLAGS_ixgbe_rxtx.o += -wd3656
|
||||
CFLAGS_ixgbe_rxtx.o += -diag-disable 3656
|
||||
|
||||
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
||||
#
|
||||
|
@ -73,8 +73,8 @@ ifeq ($(shell clang -Wno-pointer-bool-conversion -Werror -E - < /dev/null > /dev
|
||||
CFLAGS_BASE_DRIVER += -Wno-pointer-bool-conversion
|
||||
endif
|
||||
else #ICC
|
||||
CFLAGS_BASE_DRIVER += -wd188 #188: enumerated type mixed with another type
|
||||
CFLAGS_qede_ethdev.o += -wd279 #279: controlling expression is constant
|
||||
CFLAGS_BASE_DRIVER += -diag-disable 188 #188: enumerated type mixed with another type
|
||||
CFLAGS_qede_ethdev.o += -diag-disable 279 #279: controlling expression is constant
|
||||
endif
|
||||
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ else ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
|
||||
# Suppress ICC false positive warning on 'bulk' may be used before its
|
||||
# value is set
|
||||
CFLAGS_sfc_ef10_tx.o += -wd3656
|
||||
CFLAGS_sfc_ef10_tx.o += -diag-disable 3656
|
||||
endif
|
||||
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
||||
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
||||
|
@ -32,7 +32,7 @@ extra_flags += [
|
||||
|
||||
# Suppress ICC false positive warning on 'bulk' may be used before its
|
||||
# value is set
|
||||
extra_flags += '-wd3656'
|
||||
extra_flags += '-diag-disable 3656'
|
||||
|
||||
foreach flag: extra_flags
|
||||
if cc.has_argument(flag)
|
||||
|
@ -15,7 +15,8 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
||||
#
|
||||
# CFLAGS for icc
|
||||
#
|
||||
CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
|
||||
CFLAGS_BASE_DRIVER = -diag-disable 174 -diag-disable 593 -diag-disable 869
|
||||
CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
|
||||
|
||||
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user