Re: [PATCH 3/8] test: Quell warning for depricated g_type_init()

Uli Schlachter <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Typo in the subject: "deprecated" instead of "depricated".

On 22.02.2014 03:07, Bryce W. Harrington wrote:
> 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)
> 
> Signed-off-by: Bryce Harrington <[email protected]>
> ---
>  test/any2ppm.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/test/any2ppm.c b/test/any2ppm.c
> index af2a43e..b125496 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);
> 


-- 
- He made himself, me nothing, you nothing out of the dust
- Er machte sich mir nichts, dir nichts aus dem Staub
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.