summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-29 17:32:23 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-29 17:32:23 -0300
commite69f41001baa664b6021362319810e3701e808b5 (patch)
treeb201d3e8ebf04ff34e7619bfd7af319b57c4ac61 /src/tests/eio
parent46903d76f5c5c9fa9834298edff509b4b82a2e5b (diff)
eio: Fix unused variable warnings in test
Use of EINA_UNUSED in unused parameters
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_model_test_file.c13
1 files 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 b09df89717..63f7b93716 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
58 } 58 }
59 59
60static void 60static void
61promise_then_count(Eo* obj EINA_UNUSED, int *total) 61promise_then_count(void *data EINA_UNUSED, void *p)
62{ 62{
63 int *total = p;
63 ck_assert_ptr_ne(total, NULL); 64 ck_assert_ptr_ne(total, NULL);
64 printf("efl_model_loaded count %d\n", *total); fflush(stdout); 65 printf("efl_model_loaded count %d\n", *total); fflush(stdout);
65 ecore_main_loop_quit(); 66 ecore_main_loop_quit();
66} 67}
67 68
68static void 69static void
69promise_then_accessor(Eo* obj EINA_UNUSED, Eina_Accessor **accessor) 70promise_then_accessor(void *data EINA_UNUSED, void* p)
70{ 71{
72 Eina_Accessor **accessor = (Eina_Accessor**)p;
71 ck_assert_ptr_ne(accessor, NULL); 73 ck_assert_ptr_ne(accessor, NULL);
72 printf("efl_model_loaded accessor %p\n", *accessor); fflush(stdout); 74 printf("efl_model_loaded accessor %p\n", *accessor); fflush(stdout);
73 75
@@ -82,8 +84,9 @@ promise_then_accessor(Eo* obj EINA_UNUSED, Eina_Accessor **accessor)
82} 84}
83 85
84static void 86static void
85promise_then_value(void *user EINA_UNUSED, Eina_Value *value) 87promise_then_value(void *user EINA_UNUSED, void *p)
86{ 88{
89 Eina_Value* value = p;
87 ck_assert_ptr_ne(value, NULL); 90 ck_assert_ptr_ne(value, NULL);
88 char *str = eina_value_to_string(value); 91 char *str = eina_value_to_string(value);
89 92
@@ -95,7 +98,7 @@ promise_then_value(void *user EINA_UNUSED, Eina_Value *value)
95} 98}
96 99
97static void 100static void
98error_promise_then(void* data, Eina_Error const* error) 101error_promise_then(void* data EINA_UNUSED, Eina_Error const* error EINA_UNUSED)
99{ 102{
100 ck_abort_msg(0, "Error Promise cb"); 103 ck_abort_msg(0, "Error Promise cb");
101 ecore_main_loop_quit(); 104 ecore_main_loop_quit();
@@ -104,8 +107,6 @@ error_promise_then(void* data, Eina_Error const* error)
104START_TEST(eio_model_test_test_file) 107START_TEST(eio_model_test_test_file)
105{ 108{
106 Eo *filemodel = NULL; 109 Eo *filemodel = NULL;
107 Eina_Array *properties_list = NULL;
108 unsigned int i;
109 110
110 memset(&reqs, 0, sizeof(struct reqs_t)); 111 memset(&reqs, 0, sizeof(struct reqs_t));
111 112