mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 02:38:07 +02:00
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>
This commit is contained in:
parent
75e671c29b
commit
9b8a752249
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue