[Spice-devel] [vdagent-linux 3/3] Don't call g_type_init() with newer glibs

Christophe Fergeau cfergeau at redhat.com
Tue Sep 23 08:32:41 PDT 2014


This has been deprecated and causes a compile-time warning when used.
---
 src/vdagent.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/vdagent.c b/src/vdagent.c
index 3692e21..8a3c139 100644
--- a/src/vdagent.c
+++ b/src/vdagent.c
@@ -298,7 +298,9 @@ int main(int argc, char *argv[])
     if (do_daemonize)
         parent_socket = daemonize();
 
+#if !GLIB_CHECK_VERSION(2,36,0)
     g_type_init();
+#endif
 
     /* TODO: use g_thread_create for GIO < 2.32, g_thread_new for GIO >= 2.32 */
     thread_loop = g_thread_new("Loop", thread_func_loop, NULL);
-- 
1.9.3



More information about the Spice-devel mailing list