From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/ip_pipeline: fix build with clang 3.6 Date: Tue, 19 May 2015 17:46:26 +0200 Message-ID: <9421937.zem0FdVnJy@xps13> References: <1432031834-12042-1-git-send-email-thomas.monjalon@6wind.com> <3EB4FA525960D640B5BDFFD6A3D8912632369F33@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Dumitrescu, Cristian" Return-path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id A25E09A8F for ; Tue, 19 May 2015 17:47:11 +0200 (CEST) Received: by wibt6 with SMTP id t6so27925033wib.0 for ; Tue, 19 May 2015 08:47:11 -0700 (PDT) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912632369F33@IRSMSX108.ger.corp.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" > > This error is detected: > > examples/ip_pipeline/cmdline.c:272:15: error: address of array > > 'params->file_path' will always evaluate to 'true' > > if (!params->file_path) { > > ~~~~~~~~~^~~~~~~~~ > > > > file_path is an array in a structure so it's unneeded to check it. > > > > Signed-off-by: Thomas Monjalon > > Acked-by: Cristian Dumitrescu Applied, thanks