From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2 2/2] fix building with clang-3.8.0 compiler Date: Mon, 27 Jun 2016 09:46:49 +0100 Message-ID: <20160627084649.GB19588@bricha3-MOBL3> References: <1757902E-701B-4C42-BF80-285F37F50526@intel.com> <1466956452-91772-2-git-send-email-keith.wiles@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Keith Wiles Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6A1A95A90 for ; Mon, 27 Jun 2016 10:46:53 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1466956452-91772-2-git-send-email-keith.wiles@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" On Sun, Jun 26, 2016 at 10:54:12AM -0500, Keith Wiles wrote: > Latest clang compiler 3.8.0 on latest update of Ubuntu > creates a few more warnings on -Warray-bounds and extra > () around 'if' expressions. > > Signed-off-by: Keith Wiles > --- > app/test-pmd/Makefile | 3 +++ > app/test/Makefile | 3 +++ > drivers/net/bonding/Makefile | 4 ++++ > drivers/net/fm10k/Makefile | 2 ++ > drivers/net/i40e/Makefile | 2 ++ > lib/librte_cmdline/Makefile | 6 ++++++ > lib/librte_eal/linuxapp/eal/Makefile | 8 ++++++++ > 7 files changed, 28 insertions(+) > All the fixes in this patch seem to be just disabling the compiler warnings, which should really be the last resort in cases like this. Can some of the issues be fixed by actually fixing the issues in the code? /Bruce