From: Ralph Corderoy Date: Sat, 3 Feb 2018 10:46:23 +0000 (+0000) Subject: decode_rfc2047(): Stop unused-variable warning if HAVE_ICONV false. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a05f0ee61f14e6d56d065c1e7c050714a687f793?ds=sidebyside decode_rfc2047(): Stop unused-variable warning if HAVE_ICONV false. --- diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index 2fe63e56..8022c2f6 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -93,7 +93,9 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen) if (!strchr (str, '=')) return 0; +#ifdef HAVE_ICONV bool use_iconv = false; /* are we converting encoding with iconv? */ +#endif bool between_encodings = false; bool equals_pending = false; for (p = str, q = dst; *p; p++) {