tests: Fix some compiler warnings

This commit is contained in:
Emmanuele Bassi 2011-10-12 09:57:53 +01:00
parent 9e61cfcf38
commit 9901a06a1f
2 changed files with 7 additions and 2 deletions

View File

@ -139,7 +139,7 @@ main (int argc, char **argv)
g_print (" - %s:%*s%s\n",
test_unit_names[i],
(int) len - strlen (str), " ",
(int) (len - strlen (str)), " ",
str);
g_free (str);

View File

@ -27,8 +27,13 @@ test_thread_data_new (void)
}
static void
test_thread_data_free (TestThreadData *data)
test_thread_data_free (gpointer _data)
{
TestThreadData *data = _data;
if (data == NULL)
return;
g_object_unref (data->progress);
g_object_unref (data->label);
g_object_unref (data->stage);