[gupnp-dlna/gupnp-dlna-0.8] Disable deprecation warnings



commit 028de9b53a81a7db8ac61aadf0930de6e341d7b6
Author: Jens Georg <mail jensge org>
Date:   Sat Dec 1 00:03:24 2012 +0100

    Disable deprecation warnings

 tests/dlna-encoding.c          |    2 ++
 tests/dlna-profile-parser.c    |    2 ++
 tools/gupnp-dlna-info.c        |    2 ++
 tools/gupnp-dlna-ls-profiles.c |    2 ++
 4 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/dlna-encoding.c b/tests/dlna-encoding.c
index b61cdfe..79528a9 100644
--- a/tests/dlna-encoding.c
+++ b/tests/dlna-encoding.c
@@ -199,7 +199,9 @@ main (int argc, char **argv)
   GUPnPDLNAProfile *profile;
   gchar *inputuri;
 
+#if !GLIB_CHECK_VERSION(2,35,0)
   g_type_init ();
+#endif
 
   ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin");
   g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tests/dlna-profile-parser.c b/tests/dlna-profile-parser.c
index 4ab179e..5f9b443 100644
--- a/tests/dlna-profile-parser.c
+++ b/tests/dlna-profile-parser.c
@@ -103,7 +103,9 @@ main (int argc, char **argv)
 
         GOptionContext *ctx;
 
+#if !GLIB_CHECK_VERSION(2,35,0)
         g_type_init ();
+#endif
 
         ctx = g_option_context_new (" - test to parse dlna profiles");
         g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tools/gupnp-dlna-info.c b/tools/gupnp-dlna-info.c
index b1f63c4..82fd72b 100644
--- a/tools/gupnp-dlna-info.c
+++ b/tools/gupnp-dlna-info.c
@@ -452,7 +452,9 @@ main (int argc, char **argv)
 
         GOptionContext *ctx;
 
+#if !GLIB_CHECK_VERSION(2,35,0)
         g_type_init ();
+#endif
 
         ctx = g_option_context_new (" - program to extract DLNA and related metadata");
         g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tools/gupnp-dlna-ls-profiles.c b/tools/gupnp-dlna-ls-profiles.c
index cb803fc..2df5cc8 100644
--- a/tools/gupnp-dlna-ls-profiles.c
+++ b/tools/gupnp-dlna-ls-profiles.c
@@ -103,7 +103,9 @@ main (int argc, char **argv)
 
         GOptionContext *ctx;
 
+#if !GLIB_CHECK_VERSION(2,35,0)
         g_type_init ();
+#endif
 
         ctx = g_option_context_new (" - program to list all the DLNA profiles supported by gupnp-dlna");
         g_option_context_add_main_entries (ctx, options, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]