From 3d2d73d615a5da395fbf3bae0379778c128d4682 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 14 Feb 2017 15:10:14 +0100 Subject: [PATCH] main: call g_type_init only if using an old glib Calling g_type_init() is not needed anymore and deprecated since glib version 2.36. https://bugs.freedesktop.org/show_bug.cgi?id=99812 --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 5301ff9..396f059 100644 --- a/src/main.c +++ b/src/main.c @@ -300,7 +300,10 @@ int main(int argc, char **argv) context = g_option_context_new ("Fingerprint handler daemon"); g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); + +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init(); +#endif if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) { g_print ("couldn't parse command-line options: %s\n", error->message);