]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
cli: Guard deprecated g_type_init calls
[notmuch] / notmuch.c
index 99ddd6d080fb6a23068ee904b2c6c0f23832da3b..45a73ce07f2b31fb660871a17a74b50f13820aa0 100644 (file)
--- 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;