From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id EA5879AB1 for ; Fri, 8 Jul 2016 17:23:53 +0200 (CEST) Received: from cpe-2606-a000-111b-40ed-7aac-c0ff-fec2-933b.dyn6.twc.com ([2606:a000:111b:40ed:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1bLXcs-0006GB-4l; Fri, 08 Jul 2016 11:23:41 -0400 Date: Fri, 8 Jul 2016 11:23:28 -0400 From: Neil Horman To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20160708152327.GH14917@hmsreliant.think-freely.org> References: <1467972855-21873-1-git-send-email-thomas.monjalon@6wind.com> <1467988944-25004-1-git-send-email-thomas.monjalon@6wind.com> <1467988944-25004-7-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1467988944-25004-7-git-send-email-thomas.monjalon@6wind.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Score: -1.0 (-) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH v3 06/10] pmdinfogen: fix build warnings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 15:23:54 -0000 On Fri, Jul 08, 2016 at 04:42:20PM +0200, Thomas Monjalon wrote: > When compiled with a standard clang, pmdinfogen can raise a warning: > buildtools/pmdinfogen/pmdinfogen.c:365:1: warning: > control reaches end of non-void function > > Actually there can be more warnings with stricter compilers. > In order to catch them early and fix most of them, the DPDK standard flags > WERROR_FLAGS are used. > > The warnings fixed are: > no previous prototype for ... > no return statement in function returning non-void > variable ‘secstrings’ set but not used > ‘sec_name’ defined but not used > ‘get_symbol_index’ defined but not used > pointer of type ‘void *’ used in arithmetic > > Fixes: 98b0fdb0ffc6 ("pmdinfogen: add buildtools and pmdinfogen utility") > > Signed-off-by: Thomas Monjalon Acked-by: Neil Horman