summaryrefslogtreecommitdiff
path: root/examples/dump-xml.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-09-02 13:47:09 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2014-09-03 10:23:44 +0200
commitc81d89c4f0d5f0458f4794125999014657ba0eb1 (patch)
tree8bf04d4487bfdfd0fad1b73c096bed09658998af /examples/dump-xml.c
parent19c5f952e9e30790795f3548c125e53392e8bb14 (diff)
downloadlibrest-c81d89c4f0d5f0458f4794125999014657ba0eb1.tar.gz
tests: Don't call g_type_init() on newer glib
This is deprecated and causes a compile warning https://bugzilla.gnome.org/show_bug.cgi?id=735921
Diffstat (limited to 'examples/dump-xml.c')
-rw-r--r--examples/dump-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/dump-xml.c b/examples/dump-xml.c
index f9ee2b1..f574cb5 100644
--- a/examples/dump-xml.c
+++ b/examples/dump-xml.c
@@ -94,7 +94,9 @@ main (int argc, char **argv)
return 1;
}
+#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
+#endif
if (!g_file_get_contents (argv[1], &data, &length, &error)) {
g_printerr ("%s\n", error->message);