From dc3bcebd2dba4fdb2e73b6243bb736947c4f2581 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Wed, 8 Oct 2014 09:58:33 +0200 Subject: [PATCH] base_cpp: removed warnings from function implementation when building with clang --- base_cpp/include/embb/base/internal/function1.h | 4 ++-- base_cpp/include/embb/base/internal/function2.h | 8 ++++---- base_cpp/include/embb/base/internal/function3.h | 12 ++++++------ base_cpp/include/embb/base/internal/function4.h | 16 ++++++++-------- base_cpp/include/embb/base/internal/function5.h | 20 ++++++++++---------- base_cpp/src/functionN.lua | 2 +- 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/base_cpp/include/embb/base/internal/function1.h b/base_cpp/include/embb/base/internal/function1.h index 92c2d56..830df3c 100644 --- a/base_cpp/include/embb/base/internal/function1.h +++ b/base_cpp/include/embb/base/internal/function1.h @@ -334,7 +334,7 @@ template Bind( C & obj, R(C::*func)(T1), - Placeholder::Arg_1 p1) { + Placeholder::Arg_1) { return Function(obj, func); } @@ -342,7 +342,7 @@ template Function Bind( R(*func)(T1), - Placeholder::Arg_1 p1) { + Placeholder::Arg_1) { return Function(func); } diff --git a/base_cpp/include/embb/base/internal/function2.h b/base_cpp/include/embb/base/internal/function2.h index a71020a..f5f767f 100644 --- a/base_cpp/include/embb/base/internal/function2.h +++ b/base_cpp/include/embb/base/internal/function2.h @@ -422,8 +422,8 @@ template Bind( C & obj, R(C::*func)(T1, T2), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2) { + Placeholder::Arg_1, + Placeholder::Arg_2) { return Function(obj, func); } @@ -431,8 +431,8 @@ template Function Bind( R(*func)(T1, T2), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2) { + Placeholder::Arg_1, + Placeholder::Arg_2) { return Function(func); } diff --git a/base_cpp/include/embb/base/internal/function3.h b/base_cpp/include/embb/base/internal/function3.h index 2000930..002dcaf 100644 --- a/base_cpp/include/embb/base/internal/function3.h +++ b/base_cpp/include/embb/base/internal/function3.h @@ -468,9 +468,9 @@ template Bind( C & obj, R(C::*func)(T1, T2, T3), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3) { return Function(obj, func); } @@ -478,9 +478,9 @@ template Function Bind( R(*func)(T1, T2, T3), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3) { return Function(func); } diff --git a/base_cpp/include/embb/base/internal/function4.h b/base_cpp/include/embb/base/internal/function4.h index d57608d..a813a9f 100644 --- a/base_cpp/include/embb/base/internal/function4.h +++ b/base_cpp/include/embb/base/internal/function4.h @@ -517,10 +517,10 @@ template Bind( C & obj, R(C::*func)(T1, T2, T3, T4), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3, - Placeholder::Arg_4 p4) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3, + Placeholder::Arg_4) { return Function(obj, func); } @@ -528,10 +528,10 @@ template Function Bind( R(*func)(T1, T2, T3, T4), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3, - Placeholder::Arg_4 p4) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3, + Placeholder::Arg_4) { return Function(func); } diff --git a/base_cpp/include/embb/base/internal/function5.h b/base_cpp/include/embb/base/internal/function5.h index 14687f8..c7b0645 100644 --- a/base_cpp/include/embb/base/internal/function5.h +++ b/base_cpp/include/embb/base/internal/function5.h @@ -567,11 +567,11 @@ template Bind( C & obj, R(C::*func)(T1, T2, T3, T4, T5), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3, - Placeholder::Arg_4 p4, - Placeholder::Arg_5 p5) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3, + Placeholder::Arg_4, + Placeholder::Arg_5) { return Function(obj, func); } @@ -579,11 +579,11 @@ template Function Bind( R(*func)(T1, T2, T3, T4, T5), - Placeholder::Arg_1 p1, - Placeholder::Arg_2 p2, - Placeholder::Arg_3 p3, - Placeholder::Arg_4 p4, - Placeholder::Arg_5 p5) { + Placeholder::Arg_1, + Placeholder::Arg_2, + Placeholder::Arg_3, + Placeholder::Arg_4, + Placeholder::Arg_5) { return Function(func); } diff --git a/base_cpp/src/functionN.lua b/base_cpp/src/functionN.lua index 15811c9..33601ba 100644 --- a/base_cpp/src/functionN.lua +++ b/base_cpp/src/functionN.lua @@ -497,7 +497,7 @@ function make_functionN(arg_cnt) local bound_param_list_c = "" for i = 1, arg_cnt, 1 do - bound_param_list_c = bound_param_list_c..",\n Placeholder::Arg_"..i.." p"..i + bound_param_list_c = bound_param_list_c..",\n Placeholder::Arg_"..i end file:write(CR_templ.."\n") -- libgit2 0.26.0