Tests: fix warnings.
authorDaniel Zaoui <daniel.zaoui@yahoo.com>
Tue, 17 Mar 2015 11:09:46 +0000 (13:09 +0200)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Wed, 18 Mar 2015 09:26:29 +0000 (11:26 +0200)
@TAsn, I checked the code to be sure nothing is wrong :P

src/tests/ecore/ecore_test_ecore_con.c
src/tests/eina/eina_test_xattr.c
src/tests/eio/eio_test_monitor.c

index b6b6c6d..a06bf31 100644 (file)
@@ -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);
index 6f51c72..d70e952 100644 (file)
@@ -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
 }
index ba5943f..7b93928 100644 (file)
@@ -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");
 }