[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCH virt-viewer] Fix g_thread_init deprecation warning



On Wed, Mar 28, 2012 at 04:34:27PM +0200, Marc-André Lureau wrote:
> Although the doc says it is only deprecated since >2.32, it's actually
> >2.31 according to glib git log.

2.31 being a development release series with 2.32 being released, I don't
think this brings much to check for 2.31. glib documentation probably only
references stable release numbers.

Christophe

> ---
>  src/remote-viewer-main.c |    2 ++
>  src/virt-viewer-main.c   |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
> index d857e45..ffec737 100644
> --- a/src/remote-viewer-main.c
> +++ b/src/remote-viewer-main.c
> @@ -104,7 +104,9 @@ main(int argc, char **argv)
>          { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
>      };
>  
> +#if !GLIB_CHECK_VERSION(2,31,0)
>      g_thread_init(NULL);
> +#endif
>  
>      setlocale(LC_ALL, "");
>      bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
> diff --git a/src/virt-viewer-main.c b/src/virt-viewer-main.c
> index 4aefc19..c80949b 100644
> --- a/src/virt-viewer-main.c
> +++ b/src/virt-viewer-main.c
> @@ -84,7 +84,9 @@ int main(int argc, char **argv)
>          { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
>      };
>  
> +#if !GLIB_CHECK_VERSION(2,31,0)
>      g_thread_init(NULL);
> +#endif
>  
>      setlocale(LC_ALL, "");
>      bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
> -- 
> 1.7.7.6
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list redhat com
> https://www.redhat.com/mailman/listinfo/virt-tools-list

Attachment: pgpzXYr0yKwqu.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]