From: Richard Russon Date: Mon, 19 Mar 2018 10:19:11 +0000 (+0000) Subject: dead code - do_database_open X-Git-Tag: neomutt-20180323~8^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbdbff952ac6533a7e4096559d9bebda3573900e;p=neomutt dead code - do_database_open --- diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 528779443..5ac108c0f 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -482,7 +482,9 @@ static notmuch_database_t *do_database_open(const char *filename, bool writable, notmuch_database_t *db = NULL; int ct = 0; notmuch_status_t st = NOTMUCH_STATUS_SUCCESS; +#if LIBNOTMUCH_CHECK_VERSION(4, 2, 0) char *msg = NULL; +#endif mutt_debug(1, "nm: db open '%s' %s (timeout %d)\n", filename, writable ? "[WRITE]" : "[READ]", NmOpenTimeout); @@ -513,12 +515,14 @@ static notmuch_database_t *do_database_open(const char *filename, bool writable, { if (!db) { +#if LIBNOTMUCH_CHECK_VERSION(4, 2, 0) if (msg) { mutt_error(msg); FREE(&msg); } else +#endif { mutt_error(_("Cannot open notmuch database: %s: %s"), filename, st ? notmuch_status_to_string(st) : _("unknown reason"));