felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e69f41001baa664b6021362319810e3701e808b5

commit e69f41001baa664b6021362319810e3701e808b5
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Fri Apr 29 17:32:23 2016 -0300

    eio: Fix unused variable warnings in test
    
    Use of EINA_UNUSED in unused parameters
---
 src/tests/eio/eio_model_test_file.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/tests/eio/eio_model_test_file.c 
b/src/tests/eio/eio_model_test_file.c
index b09df89..63f7b93 100644
--- a/src/tests/eio/eio_model_test_file.c
+++ b/src/tests/eio/eio_model_test_file.c
@@ -58,16 +58,18 @@ static Eina_Bool
  }
 
 static void
-promise_then_count(Eo* obj EINA_UNUSED, int *total)
+promise_then_count(void *data EINA_UNUSED, void *p)
 {
+  int *total = p;
   ck_assert_ptr_ne(total, NULL);
   printf("efl_model_loaded count %d\n", *total); fflush(stdout);
   ecore_main_loop_quit();
 }
 
 static void
-promise_then_accessor(Eo* obj EINA_UNUSED, Eina_Accessor **accessor)
+promise_then_accessor(void *data EINA_UNUSED, void* p)
 {
+  Eina_Accessor **accessor = (Eina_Accessor**)p;
   ck_assert_ptr_ne(accessor, NULL);
   printf("efl_model_loaded accessor %p\n", *accessor); fflush(stdout);
 
@@ -82,8 +84,9 @@ promise_then_accessor(Eo* obj EINA_UNUSED, Eina_Accessor 
**accessor)
 }
 
 static void
-promise_then_value(void *user EINA_UNUSED, Eina_Value *value)
+promise_then_value(void *user EINA_UNUSED, void *p)
 {
+  Eina_Value* value = p;
   ck_assert_ptr_ne(value, NULL);
   char *str = eina_value_to_string(value);
 
@@ -95,7 +98,7 @@ promise_then_value(void *user EINA_UNUSED, Eina_Value *value)
 }
 
 static void
-error_promise_then(void* data, Eina_Error const* error)
+error_promise_then(void* data EINA_UNUSED, Eina_Error const* error EINA_UNUSED)
 {
   ck_abort_msg(0, "Error Promise cb");
   ecore_main_loop_quit();
@@ -104,8 +107,6 @@ error_promise_then(void* data, Eina_Error const* error)
 START_TEST(eio_model_test_test_file)
 {
    Eo *filemodel = NULL;
-   Eina_Array *properties_list = NULL;
-   unsigned int i;
 
    memset(&reqs, 0, sizeof(struct reqs_t));
 

-- 


Reply via email to