jackdanielz pushed a commit to branch master.

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

commit d33508f407b50216c5268a1edaff565124daad3d
Author: Daniel Zaoui <[email protected]>
Date:   Tue Mar 17 13:09:46 2015 +0200

    Tests: fix warnings.
    
    @TAsn, I checked the code to be sure nothing is wrong :P
---
 src/tests/ecore/ecore_test_ecore_con.c | 5 ++---
 src/tests/eina/eina_test_xattr.c       | 2 ++
 src/tests/eio/eio_test_monitor.c       | 4 +---
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/tests/ecore/ecore_test_ecore_con.c 
b/src/tests/ecore/ecore_test_ecore_con.c
index b6b6c6d..a06bf31 100644
--- a/src/tests/ecore/ecore_test_ecore_con.c
+++ b/src/tests/ecore/ecore_test_ecore_con.c
@@ -14,9 +14,6 @@ char cdata[] = "Client_info";
 Eina_Bool
 _add(void *data, int type EINA_UNUSED, void *ev)
 {
-   double timeout_val = 10, ret;
-   void *del_data;
-
    fail_if (type != ECORE_CON_EVENT_CLIENT_ADD &&
        type != ECORE_CON_EVENT_SERVER_ADD);
 
@@ -24,6 +21,8 @@ _add(void *data, int type EINA_UNUSED, void *ev)
    if (type == ECORE_CON_EVENT_CLIENT_ADD)
      {
        Ecore_Con_Event_Client_Add *event = ev;
+       double timeout_val = 10, ret;
+       void *del_data;
 
        fail_if (data != (void *) 1);
        fail_if (!event->client);
diff --git a/src/tests/eina/eina_test_xattr.c b/src/tests/eina/eina_test_xattr.c
index 6f51c72..d70e952 100644
--- a/src/tests/eina/eina_test_xattr.c
+++ b/src/tests/eina/eina_test_xattr.c
@@ -231,5 +231,7 @@ eina_test_xattr(TCase *tc)
 #ifdef XATTR_TEST_DIR
    tcase_add_test(tc, eina_test_xattr_set);
    tcase_add_test(tc, eina_test_xattr_list);
+#else
+   (void)tc;
 #endif
 }
diff --git a/src/tests/eio/eio_test_monitor.c b/src/tests/eio/eio_test_monitor.c
index ba5943f..7b93928 100644
--- a/src/tests/eio/eio_test_monitor.c
+++ b/src/tests/eio/eio_test_monitor.c
@@ -106,8 +106,6 @@ static Eina_Bool _modify_attrib_file(void *data)
 
 static Eina_Bool _check_event_path(void *data, void *event)
 {
-   const char *expected_path = (const char*)data;
-   const char *actual_path = ((Eio_Monitor_Event*)event)->filename;
    ck_assert_str_eq((const char*)data, ((Eio_Monitor_Event*)event)->filename);
    return EINA_TRUE;
 }
@@ -626,7 +624,7 @@ 
START_TEST(eio_test_monitor_two_monitors_one_removed_one_event)
 }
 END_TEST
 
-static void _unexpected_event_cb(void *data, int type, void *event)
+static void _unexpected_event_cb(void *data EINA_UNUSED, int type EINA_UNUSED, 
void *event EINA_UNUSED)
 {
    ck_abort_msg("unexpected event");
 }

-- 


Reply via email to