From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v3 04/12] eal: allow empty compile time flags Date: Mon, 6 Jul 2015 16:33:36 +0100 Message-ID: <20150706153336.GB3680@bricha3-MOBL3> References: <1436172698-21749-1-git-send-email-zlu@ezchip.com> <1436172698-21749-5-git-send-email-zlu@ezchip.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Zhigang Lu Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2A3C7106B for ; Mon, 6 Jul 2015 17:33:40 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1436172698-21749-5-git-send-email-zlu@ezchip.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" On Mon, Jul 06, 2015 at 04:51:29PM +0800, Zhigang Lu wrote: > The rte_cpu_check_supported() code breaks with a "comparison is always > false due to limited range of data type" when the compile_time_flags[] > array is empty. Assigning the array dimension to a local variable > apparently solves this. > > Change-Id: I0ae21f529cf7b6dd9cf0f4532dce9198f4bf4230 > Signed-off-by: Zhigang Lu Acked-by: Bruce Richardson