summaryrefslogtreecommitdiff
path: root/examples/bond
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2015-05-18 10:17:58 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-05-19 17:35:33 +0200
commit4ae39dfa69ad9a1ae6174f52c60c187d2843402b (patch)
tree26ccde93317a8bd80ea8b8fce71ac3290fbf4fff /examples/bond
parent0fbcba7b3614569f3430ce1493f6a5f5a787c023 (diff)
downloaddpdk-4ae39dfa69ad9a1ae6174f52c60c187d2843402b.zip
dpdk-4ae39dfa69ad9a1ae6174f52c60c187d2843402b.tar.gz
dpdk-4ae39dfa69ad9a1ae6174f52c60c187d2843402b.tar.xz
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 <olivier.matz@6wind.com>
Diffstat (limited to 'examples/bond')
-rw-r--r--examples/bond/main.c2
1 files changed, 1 insertions, 1 deletions
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;