eina-cxx: remove unused parameter names and fix function without return in examples.
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Fri, 9 May 2014 10:46:44 +0000 (12:46 +0200)
committerCedric Bail <cedric.bail@free.fr>
Fri, 9 May 2014 10:46:48 +0000 (12:46 +0200)
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>
src/examples/eina_cxx/eina_cxx_list_01.cc
src/examples/eina_cxx/eina_cxx_thread_01.cc

index b451ef1..0cb0381 100644 (file)
@@ -14,9 +14,10 @@ I next(I i, std::size_t n = 1u)
 {
   for(;n;--n)
     ++i;
+  return i;
 }
 
-int main(int argc, char **argv)
+int main()
 {
    efl::eina::eina_init eina_init;
 
index 6ce329f..64c7525 100644 (file)
 
 namespace eina = efl::eina;
 
-void thread1(eina::mutex& m)
+void thread1(eina::mutex&)
 {
   
 }
 
-int main(int argc, char **argv)
+int main()
 {
    eina::eina_init eina_init;
    eina::eina_threads_init threads_init;