From: Markos Chandras Subject: Re: [PATCH] mk: disable new gcc truncation flag Date: Mon, 12 Jun 2017 17:35:22 +0300 Message-ID: References: <20170602163116.4631-1-ndas@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Nirmoy Das , dev@dpdk.org Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by dpdk.org (Postfix) with ESMTP id AB2C1DE3 for ; Mon, 12 Jun 2017 16:35:23 +0200 (CEST) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 387DBAD55 for ; Mon, 12 Jun 2017 14:35:23 +0000 (UTC) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 06/02/2017 07:38 PM, Markos Chandras wrote: > On 06/02/2017 05:31 PM, Nirmoy Das wrote: >> disable truncation check to ignore below warning >> dpdk/x86_64-native-linuxapp-gcc-default/build/lib/librte_eal/linuxapp/kni/igb_main.c:2476:30: error: '%d' directive output may be truncated writing between 1 and 5 bytes into a region of size between 0 and 11 [-Werror=format-truncation=] >> >> Signed-off-by: Nirmoy Das >> --- > > I haven't check the code but is this a bogus warning or a real one? If > it's bogus then could you explain why in the commit message so we do not > bring it back in the future? If it's a real problem, then perhaps worth > fixing it instead of masking it? > Actually this should have already been fixed in the series posted in http://dpdk.org/ml/archives/dev/2017-May/065261.html -- markos SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg