diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-02 13:47:09 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-03 10:23:44 +0200 |
commit | c81d89c4f0d5f0458f4794125999014657ba0eb1 (patch) | |
tree | 8bf04d4487bfdfd0fad1b73c096bed09658998af /tests/flickr.c | |
parent | 19c5f952e9e30790795f3548c125e53392e8bb14 (diff) | |
download | librest-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 'tests/flickr.c')
-rw-r--r-- | tests/flickr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/flickr.c b/tests/flickr.c index a34025e..1befe72 100644 --- a/tests/flickr.c +++ b/tests/flickr.c @@ -36,7 +36,9 @@ main (int argc, char **argv) RestXmlParser *parser; RestXmlNode *root, *node; +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif /* Create the proxy */ proxy = flickr_proxy_new (API_KEY, SHARED_SECRET); |