From 9901a06a1fb0499feb4a4e6efb3868f2a155f753 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 12 Oct 2011 09:57:53 +0100 Subject: [PATCH] tests: Fix some compiler warnings --- tests/interactive/test-main.c | 2 +- tests/interactive/test-threads.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/interactive/test-main.c b/tests/interactive/test-main.c index 74bbcd023..cec02cf51 100644 --- a/tests/interactive/test-main.c +++ b/tests/interactive/test-main.c @@ -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); diff --git a/tests/interactive/test-threads.c b/tests/interactive/test-threads.c index 72a68a908..450e2a732 100644 --- a/tests/interactive/test-threads.c +++ b/tests/interactive/test-threads.c @@ -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);