From e633d1f5ad23e6ef092c0b5cfac1baa6c1c057dd Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 30 Jul 2014 12:38:40 +0200 Subject: Avoid annoying g_type_init deprecation warnings --- bin/tools/benchmark.c | 3 +++ bin/tools/gen-doc.c | 2 ++ bin/tools/grab.c | 2 ++ 3 files changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c index fee40f2..1e2c79f 100644 --- a/bin/tools/benchmark.c +++ b/bin/tools/benchmark.c @@ -228,7 +228,10 @@ main (int argc, char *argv[]) }; (void) signal (SIGINT, sigint_handler); + +#if !(GLIB_CHECK_VERSION (2, 36, 0)) g_type_init (); +#endif manager = uca_plugin_manager_new (); context = uca_option_context_new (manager); diff --git a/bin/tools/gen-doc.c b/bin/tools/gen-doc.c index d27bdd8..026d828 100644 --- a/bin/tools/gen-doc.c +++ b/bin/tools/gen-doc.c @@ -196,7 +196,9 @@ int main(int argc, char *argv[]) gchar *name; GError *error = NULL; +#if !(GLIB_CHECK_VERSION (2, 36, 0)) g_type_init(); +#endif manager = uca_plugin_manager_new (); if (argc < 2) { diff --git a/bin/tools/grab.c b/bin/tools/grab.c index 5825ce7..f355fcb 100644 --- a/bin/tools/grab.c +++ b/bin/tools/grab.c @@ -235,7 +235,9 @@ main (int argc, char *argv[]) { NULL } }; +#if !(GLIB_CHECK_VERSION (2, 36, 0)) g_type_init(); +#endif manager = uca_plugin_manager_new (); context = uca_option_context_new (manager); -- cgit v1.2.3