From 31655bb5a5e2c806cee23b9ee41c2e663c5decbd Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 2 Feb 2017 16:45:01 -0800 Subject: glib: remove invocations of g_type_init() g_type_init() has been deprecated (and also marked with the attribute 'deprecated') since glib 2.36 as the type system is automatically initialized. Since the minimum version of glib required by ModemManager is 2.36, calling g_type_init() isn't necessarily in the ModemManager code. --- test/mmtty.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/mmtty.c') diff --git a/test/mmtty.c b/test/mmtty.c index 7947f814..966225c7 100644 --- a/test/mmtty.c +++ b/test/mmtty.c @@ -259,8 +259,6 @@ int main (int argc, char **argv) setlocale (LC_ALL, ""); - g_type_init (); - /* Setup option context, process it and destroy it */ context = g_option_context_new ("- ModemManager TTY testing"); g_option_context_add_main_entries (context, main_entries, NULL); -- cgit v1.2.3-70-g09d2