[Xfce4-commits] <mousepad:master> Fix compiler warning.

Nick Schermer noreply at xfce.org
Sun Dec 30 11:58:01 CET 2012


Updating branch refs/heads/master
         to 084e1ecac5b111aec765fbefc77616fb116eb7cc (commit)
       from b7b6571427a17f8343bda5810f9a830be2c0775a (commit)

commit 084e1ecac5b111aec765fbefc77616fb116eb7cc
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Dec 30 11:34:55 2012 +0100

    Fix compiler warning.

 mousepad/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mousepad/main.c b/mousepad/main.c
index 22e69eb..6eb20ee 100644
--- a/mousepad/main.c
+++ b/mousepad/main.c
@@ -84,9 +84,11 @@ main (gint argc, gchar **argv)
   g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
 #endif
 
+#if !GLIB_CHECK_VERSION (2, 30, 0)
   /* initialize the gthread system */
   if (G_LIKELY (!g_thread_supported ()))
     g_thread_init (NULL);
+#endif
 
   /* initialize gtk+ */
   if (!gtk_init_with_args (&argc, &argv, _("[FILES...]"), (GOptionEntry *) option_entries, (gchar *) GETTEXT_PACKAGE, &error))


More information about the Xfce4-commits mailing list