More g_type_init deprecation
authorJens Georg <mail@jensge.org>
Fri, 30 Nov 2012 13:40:19 +0000 (14:40 +0100)
committerJens Georg <mail@jensge.org>
Fri, 30 Nov 2012 13:40:41 +0000 (14:40 +0100)
tests/gtest/test-functional.c
tests/gtest/test-regression.c

index 2908b25..e263ecf 100644 (file)
@@ -489,7 +489,9 @@ test_discovery_versioned_ignore_older (void)
 
 int main(int argc, char *argv[])
 {
+#if !GLIB_CHECK_VERSION (2, 35, 0)
         g_type_init ();
+#endif
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/functional/resource-group/discovery/ssdp:all",
index 4459b28..a68e44c 100644 (file)
@@ -250,7 +250,9 @@ void test_bgo682099 (void)
 
 int main (int argc, char *argv[])
 {
+#if !GLIB_CHECK_VERSION (2, 35, 0)
         g_type_init ();
+#endif
         g_test_init (&argc, &argv, NULL);
 
         if (g_test_slow ()) {