From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E0033B6AB for ; Mon, 18 May 2015 15:53:10 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 18 May 2015 06:53:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,453,1427785200"; d="scan'208";a="495063913" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.63]) by FMSMGA003.fm.intel.com with SMTP; 18 May 2015 06:53:07 -0700 Received: by (sSMTP sendmail emulation); Mon, 18 May 2015 14:53:06 +0025 Date: Mon, 18 May 2015 14:53:06 +0100 From: Bruce Richardson To: Olivier Matz Message-ID: <20150518135305.GA12176@bricha3-MOBL3> References: <1431937081-20083-1-git-send-email-olivier.matz@6wind.com> <1431937081-20083-2-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431937081-20083-2-git-send-email-olivier.matz@6wind.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 1/4] examples/bond: fix compilation with clang 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: Mon, 18 May 2015 13:53:11 -0000 On Mon, May 18, 2015 at 10:17:58AM +0200, Olivier Matz wrote: > Fix the following compilation error: > > examples/bond/main.c:717:1: error: control reaches end of > non-void function [-Werror,-Wreturn-type] > > The prompt() function does not return anything, so fix its prototype > to be void. > > Signed-off-by: Olivier Matz Out of interest, what version of clang throws up this error? /Bruce > --- > examples/bond/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/bond/main.c b/examples/bond/main.c > index e90dc1d..4622283 100644 > --- a/examples/bond/main.c > +++ b/examples/bond/main.c > @@ -705,7 +705,7 @@ cmdline_parse_ctx_t main_ctx[] = { > }; > > /* prompt function, called from main on MASTER lcore */ > -static void *prompt(__attribute__((unused)) void *arg1) > +static void prompt(__attribute__((unused)) void *arg1) > { > struct cmdline *cl; > > -- > 2.1.4 >