g_type_init() is deprecated, calling it on newer glib causes a compile-time
warning.
---
 gtk/controller/test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gtk/controller/test.c b/gtk/controller/test.c
index c7ae8f0..851f237 100644
--- a/gtk/controller/test.c
+++ b/gtk/controller/test.c
@@ -214,7 +214,9 @@ int main (int argc, char *argv[])
     ControllerValue msg;
     ssize_t read;
 
+#if !GLIB_CHECK_VERSION(2,36,0)
     g_type_init ();
+#endif
     ctrl = spice_ctrl_controller_new ();
     loop = g_main_loop_new (NULL, FALSE);
     g_signal_connect (ctrl, "notify", G_CALLBACK (notified), NULL);
-- 
1.8.4.2

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to