From: Olivier Matz Date: Mon, 18 May 2015 08:17:58 +0000 (+0200) Subject: examples/bond: fix build with clang X-Git-Tag: spdx-start~9180 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4ae39dfa69ad9a1ae6174f52c60c187d2843402b;p=dpdk.git examples/bond: fix build with clang 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 --- diff --git a/examples/bond/main.c b/examples/bond/main.c index e90dc1d7a7..4622283ecb 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;