summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-05-09 12:46:44 +0200
committerCedric Bail <cedric.bail@free.fr>2014-05-09 12:46:48 +0200
commitb96fcc9247251bdc39010e6daeb6160f3243af59 (patch)
tree3c0dfb2e70e76fad5a5648bc63621d0045536ffa
parent0a6a3deaee0f5d857fff133c77e5989dba2d4e57 (diff)
eina-cxx: remove unused parameter names and fix function without return in examples.
Summary: Fix function with return type and not returning any value and remove warnings about unused identifiers in examples for eina C++. Reviewers: cedric, stefan, stefan_schmidt CC: savio, cedric Differential Revision: https://phab.enlightenment.org/D837 Signed-off-by: Cedric Bail <cedric.bail@free.fr>
-rw-r--r--src/examples/eina_cxx/eina_cxx_list_01.cc3
-rw-r--r--src/examples/eina_cxx/eina_cxx_thread_01.cc4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/examples/eina_cxx/eina_cxx_list_01.cc b/src/examples/eina_cxx/eina_cxx_list_01.cc
index b451ef1553..0cb03810f2 100644
--- a/src/examples/eina_cxx/eina_cxx_list_01.cc
+++ b/src/examples/eina_cxx/eina_cxx_list_01.cc
@@ -14,9 +14,10 @@ I next(I i, std::size_t n = 1u)
14{ 14{
15 for(;n;--n) 15 for(;n;--n)
16 ++i; 16 ++i;
17 return i;
17} 18}
18 19
19int main(int argc, char **argv) 20int main()
20{ 21{
21 efl::eina::eina_init eina_init; 22 efl::eina::eina_init eina_init;
22 23
diff --git a/src/examples/eina_cxx/eina_cxx_thread_01.cc b/src/examples/eina_cxx/eina_cxx_thread_01.cc
index 6ce329f3e5..64c7525610 100644
--- a/src/examples/eina_cxx/eina_cxx_thread_01.cc
+++ b/src/examples/eina_cxx/eina_cxx_thread_01.cc
@@ -11,12 +11,12 @@
11 11
12namespace eina = efl::eina; 12namespace eina = efl::eina;
13 13
14void thread1(eina::mutex& m) 14void thread1(eina::mutex&)
15{ 15{
16 16
17} 17}
18 18
19int main(int argc, char **argv) 19int main()
20{ 20{
21 eina::eina_init eina_init; 21 eina::eina_init eina_init;
22 eina::eina_threads_init threads_init; 22 eina::eina_threads_init threads_init;