[gnome-commander] src/main.cc: remove deprecated g_thread_init with higher GLib



commit 7be096201701146e4c9eb212eecbbdcd56f9727b
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Fri Apr 28 18:31:53 2017 +0900

    src/main.cc: remove deprecated g_thread_init with higher GLib
    
    src/main.cc:106:24: error: 'void g_thread_init(gpointer)' is deprecated [-Werror=deprecated-declarations]
    
    https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-thread-init
    
    calling g_thread_init() is no longer needed since GLib 2.32.0.
    e440def440148691aaf7b2a40841d331291f7c30 should be opposite.

 src/main.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/main.cc b/src/main.cc
index 3b53141..9bba4ad 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -102,7 +102,7 @@ int main (int argc, char *argv[])
 
     main_win = NULL;
 
-#if GLIB_CHECK_VERSION (2, 32, 0)
+#if !GLIB_CHECK_VERSION (2, 32, 0)
     g_thread_init (NULL);
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]