From a05f0ee61f14e6d56d065c1e7c050714a687f793 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 3 Feb 2018 10:46:23 +0000 Subject: [PATCH] decode_rfc2047(): Stop unused-variable warning if HAVE_ICONV false. --- sbr/fmt_rfc2047.c | 2 ++ 1 file changed, 2 insertions(+) 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++) { -- 2.56.0