Tests: fix warnings.

@TAsn, I checked the code to be sure nothing is wrong :P
This commit is contained in:
Daniel Zaoui 2015-03-17 13:09:46 +02:00
parent 4315944259
commit d33508f407
3 changed files with 5 additions and 6 deletions

View 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);

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

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