summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-05-02 11:45:52 -0400
committerDan Winship <danw@gnome.org>2011-05-02 11:50:23 -0400
commitbdc23c44e8fbb507e14056a05e38b92982df7a5f (patch)
treeaeb4ef34a1e6312ba4d7d55789ce1f5a5b7382d6 /tests
parent6f711a76cdd7eac3914542232526111a7b6bb053 (diff)
Fix compiler warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/refcount/objects.c2
-rw-r--r--tests/refcount/objects2.c2
-rw-r--r--tests/refcount/properties.c4
-rw-r--r--tests/refcount/properties2.c2
-rw-r--r--tests/refcount/signals.c2
5 files changed, 4 insertions, 8 deletions
diff --git a/tests/refcount/objects.c b/tests/refcount/objects.c
index 963804539..3724c0e9d 100644
--- a/tests/refcount/objects.c
+++ b/tests/refcount/objects.c
@@ -81,7 +81,7 @@ my_test_dispose (GObject * object)
test = MY_TEST (object);
- g_print ("dispose %p!\n", object);
+ g_print ("dispose %p!\n", test);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
diff --git a/tests/refcount/objects2.c b/tests/refcount/objects2.c
index bbd4a82e1..39f580f8c 100644
--- a/tests/refcount/objects2.c
+++ b/tests/refcount/objects2.c
@@ -80,7 +80,7 @@ my_test_dispose (GObject * object)
test = MY_TEST (object);
- g_print ("dispose %p!\n", object);
+ g_print ("dispose %p!\n", test);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
diff --git a/tests/refcount/properties.c b/tests/refcount/properties.c
index c4c165c34..87bb8b5f9 100644
--- a/tests/refcount/properties.c
+++ b/tests/refcount/properties.c
@@ -104,10 +104,6 @@ my_test_init (GTest * test)
static void
my_test_dispose (GObject * object)
{
- GTest *test;
-
- test = MY_TEST (object);
-
G_OBJECT_CLASS (parent_class)->dispose (object);
}
diff --git a/tests/refcount/properties2.c b/tests/refcount/properties2.c
index bb79105ca..862bd2f57 100644
--- a/tests/refcount/properties2.c
+++ b/tests/refcount/properties2.c
@@ -105,7 +105,7 @@ my_test_dispose (GObject * object)
test = MY_TEST (object);
- g_print ("dispose %p!\n", object);
+ g_print ("dispose %p!\n", test);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
diff --git a/tests/refcount/signals.c b/tests/refcount/signals.c
index 1a2a2ba37..2877995f2 100644
--- a/tests/refcount/signals.c
+++ b/tests/refcount/signals.c
@@ -136,7 +136,7 @@ my_test_dispose (GObject * object)
test = MY_TEST (object);
- g_print ("dispose %p!\n", object);
+ g_print ("dispose %p!\n", test);
G_OBJECT_CLASS (parent_class)->dispose (object);
}