From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helin Zhang Subject: [PATCH v2 2/2] app/testpmd: fix ICC compile issue Date: Mon, 9 Nov 2015 10:45:59 +0800 Message-ID: <1447037159-26544-3-git-send-email-helin.zhang@intel.com> References: <1446796116-1219-1-git-send-email-helin.zhang@intel.com> <1447037159-26544-1-git-send-email-helin.zhang@intel.com> To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 517CD591E for ; Mon, 9 Nov 2015 03:46:12 +0100 (CET) In-Reply-To: <1447037159-26544-1-git-send-email-helin.zhang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It fixes compile issue on ICC 13.0.0. Error logs: app/test-pmd/cmdline.c(8160): error #188: enumerated type mixed with another type entry.input.flow.tunnel_flow.tunnel_type = str2fdir_tunneltype(res->tunnel_type); Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) v2 changes: Corrected the variable/function type, to replace casting. diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c637198..cc9ece6 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -7996,14 +7996,14 @@ str2flowtype(char *string) return RTE_ETH_FLOW_UNKNOWN; } -static uint8_t +static enum rte_eth_fdir_tunnel_type str2fdir_tunneltype(char *string) { uint8_t i = 0; static const struct { char str[32]; - uint8_t type; + enum rte_eth_fdir_tunnel_type type; } tunneltype_str[] = { {"NVGRE", RTE_FDIR_TUNNEL_TYPE_NVGRE}, {"VxLAN", RTE_FDIR_TUNNEL_TYPE_VXLAN}, -- 1.8.1.4