From 8d6aa603ef3a9680c7032cabf59e3673f773dea3 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Fri, 7 Jun 2013 21:41:13 +0300 Subject: cli: Guard deprecated g_type_init calls g_type_init was deprecated in GLib 2.35.1. In order to compile cleanly, guard these with a suitable #if. (commit msg from https://bugs.freedesktop.org/attachment.cgi?id=73774 ) --- notmuch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'notmuch.c') diff --git a/notmuch.c b/notmuch.c index 99ddd6d0..45a73ce0 100644 --- a/notmuch.c +++ b/notmuch.c @@ -291,7 +291,9 @@ main (int argc, char *argv[]) local = talloc_new (NULL); g_mime_init (0); +#if !GLIB_CHECK_VERSION(2, 35, 1) g_type_init (); +#endif /* Globally default to the current output format version. */ notmuch_format_version = NOTMUCH_FORMAT_CUR; -- cgit v1.2.3