summaryrefslogtreecommitdiff
path: root/test/any2ppm.c
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-02-18 20:13:57 -0800
committerBryce Harrington <b.harrington@samsung.com>2014-02-25 12:13:40 -0800
commit9b8a752249c69ba94461b3ef6d919c1b86ae6fab (patch)
treec395074e0d6aba6e934855ec6769250e55fbe514 /test/any2ppm.c
parent75e671c29b2f2916c41af46f8c3707539b235674 (diff)
downloadcairo-9b8a752249c69ba94461b3ef6d919c1b86ae6fab.tar.gz
test: Quell warning for deprecated g_type_init()
The g_type_init() routine was deprecated in glib 2.34. Tested and verified this conditionalization on glib 2.32 and 2.36. No need to change version dependencies. test/any2ppm.c:864:5: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/any2ppm.c')
-rw-r--r--test/any2ppm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c
index af2a43edf..b125496e8 100644
--- a/test/any2ppm.c
+++ b/test/any2ppm.c
@@ -863,8 +863,10 @@ main (int argc, char **argv)
const char *err;
#if CAIRO_CAN_TEST_PDF_SURFACE || CAIRO_CAN_TEST_SVG_SURFACE
+#if GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION <= 34
g_type_init ();
#endif
+#endif
#if CAIRO_CAN_TEST_SVG_SURFACE
rsvg_set_default_dpi (72.0);