[seed] Fixing minor build warnings due to deprecated symbols
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Fixing minor build warnings due to deprecated symbols
- Date: Wed, 13 Jan 2016 02:39:09 +0000 (UTC)
commit 87a14cc39112f6da3ceaac22a1992bb382c0d4dc
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Mon Jan 11 11:26:30 2016 -0200
Fixing minor build warnings due to deprecated symbols
libseed/seed-engine.c | 2 ++
src/main.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 3f193e6..b884223 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -1763,7 +1763,9 @@ seed_init_constrained_with_context_and_group (gint * argc,
JSGlobalContextRef context,
JSContextGroupRef group)
{
+#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init ();
+#endif
g_log_set_handler ("GLib-GObject", G_LOG_LEVEL_WARNING, seed_log_handler, 0);
if ((argc != 0) && seed_parse_args (argc, argv) == FALSE)
diff --git a/src/main.c b/src/main.c
index 504a00a..81e7915 100644
--- a/src/main.c
+++ b/src/main.c
@@ -139,7 +139,9 @@ gint
main (gint argc, gchar ** argv)
{
g_set_prgname ("seed");
+#if !GLIB_CHECK_VERSION(2, 32, 0)
g_thread_init (NULL);
+#endif
seed_interpreter_parse_args (&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]