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.
This commit is contained in:
committed by
Aleksander Morgado
parent
f20f2d0428
commit
31655bb5a5
@@ -156,8 +156,6 @@ main (int argc, char *argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
g_type_init ();
|
||||
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
setup_signals ();
|
||||
|
||||
@@ -136,8 +136,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 udev rules testing");
|
||||
g_option_context_add_main_entries (context, main_entries, NULL);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user