libnm-glib: don't use deprecated g_thread_supported() and g_thread_init()

Building the sources requires libnm newer than glib 2.32, but
g_thread_supported() and g_thread_init() are deprecated since
2.32.

This causes a build failure due to the deprecated warning.
This commit is contained in:
Thomas Haller 2019-10-08 15:35:45 +02:00
parent 67128fe6c0
commit 49069cad59

View file

@ -483,8 +483,6 @@ libnm_glib_init (void)
{
libnm_glib_ctx *ctx = NULL;
if (!g_thread_supported ())
g_thread_init (NULL);
dbus_g_thread_init ();
if (!(ctx = _libnm_glib_ctx_new ()))