[clutter] tests: Fix some compiler warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] tests: Fix some compiler warnings
- Date: Wed, 12 Oct 2011 08:59:15 +0000 (UTC)
commit 9901a06a1fb0499feb4a4e6efb3868f2a155f753
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Oct 12 09:57:53 2011 +0100
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 74bbcd0..cec02cf 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 72a68a9..450e2a7 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]