git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbcba7
)
examples/bond: fix build with clang
author
Olivier Matz
<olivier.matz@6wind.com>
Mon, 18 May 2015 08:17:58 +0000
(10:17 +0200)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 19 May 2015 15:35:33 +0000
(17:35 +0200)
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 <olivier.matz@6wind.com>
examples/bond/main.c
patch
|
blob
|
history
diff --git
a/examples/bond/main.c
b/examples/bond/main.c
index
e90dc1d
..
4622283
100644
(file)
--- 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;