From 76ae71f4f667a2e17ae062f6ecd11b8f1e425e36 Mon Sep 17 00:00:00 2001 From: Hyihong Chae Date: Fri, 8 Apr 2016 14:30:14 +0900 Subject: [PATCH] fix warning issue. Change-Id: Idb4da43235db5d4cb3a47e2bfa0133b22a227825 Signed-off-by: HyiHong Chae --- client/ClientGDBus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ClientGDBus.cpp b/client/ClientGDBus.cpp index 80f352d..8a3bb8b 100755 --- a/client/ClientGDBus.cpp +++ b/client/ClientGDBus.cpp @@ -31,7 +31,9 @@ using namespace std; void __attribute__ ((constructor)) lib_init() { /* remove for deprecated-declarations build warning: glib ver > 2.36 */ - /* g_type_init(); */ +#if !GLIB_CHECK_VERSION (2, 35, 0) + g_type_init(); +#endif } void __attribute__ ((destructor)) lib_fini() -- 2.7.4