[Groonga-commit] groonga/groonga at b41b88d [master] Suppress deprecated warnings

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 15 10:25:29 JST 2013


Kouhei Sutou	2013-05-15 10:25:29 +0900 (Wed, 15 May 2013)

  New Revision: b41b88d5021877e6bfc01dac26eff1c17de2ef7e
  https://github.com/groonga/groonga/commit/b41b88d5021877e6bfc01dac26eff1c17de2ef7e

  Message:
    Suppress deprecated warnings
    
        benchmark.c: In function 'bench_init':
        benchmark.c:26:5: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
        benchmark.c:28:3: warning: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]

  Modified files:
    test/benchmark/lib/benchmark.c

  Modified: test/benchmark/lib/benchmark.c (+3 -1)
===================================================================
--- test/benchmark/lib/benchmark.c    2013-05-14 13:28:47 +0900 (cbbe375)
+++ test/benchmark/lib/benchmark.c    2013-05-15 10:25:29 +0900 (3bcbacb)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2008  Kouhei Sutou <kou �� cozmixng.org>
+  Copyright (C) 2008-2013  Kouhei Sutou <kou �� clear-code.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -21,10 +21,12 @@
 void
 bench_init(gint *argc, gchar ***argv)
 {
+#if !GLIB_CHECK_VERSION(2, 36, 0)
   if (!g_thread_supported())
     g_thread_init(NULL);
 
   g_type_init();
+#endif
 }
 
 void
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index