Tests: fix warnings.

@TAsn, I checked the code to be sure nothing is wrong :P
devs/avilog/callbacks_by_counterpart
Daniel Zaoui 8 years ago
parent 4315944259
commit d33508f407
  1. 5
      src/tests/ecore/ecore_test_ecore_con.c
  2. 2
      src/tests/eina/eina_test_xattr.c
  3. 4
      src/tests/eio/eio_test_monitor.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);

@ -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
}

@ -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");
}

Loading…
Cancel
Save