summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-08-29 11:10:15 +0200
committerMartin Pitt <martinpitt@gnome.org>2013-08-29 11:10:15 +0200
commit7933b0e55234fca86809dad1dee53f0d8e2b96ec (patch)
treeb4bae72613ca8f5c7cdf36ba610865ab212efee5 /src/up-main.c
parent2b10e202626332713583122010160b709b77acbc (diff)
downloadupower-7933b0e55234fca86809dad1dee53f0d8e2b96ec.tar.gz
trivial: Stop calling deprecated g_type_init()
When building with a recent enough glib (>= 2.36), don't call g_type_init() any more. This is deprecated and causes ugly compile warnings.
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-main.c b/src/up-main.c
index 6201a44..a7e6eb6 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -204,7 +204,9 @@ main (gint argc, gchar **argv)
{ NULL}
};
+#if !defined(GLIB_VERSION_2_36)
g_type_init ();
+#endif
context = g_option_context_new ("upower daemon");
g_option_context_add_main_entries (context, options, NULL);