]> diplodocus.org Git - nmh/commitdiff
decode_rfc2047(): Stop unused-variable warning if HAVE_ICONV false.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 3 Feb 2018 10:46:23 +0000 (10:46 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 3 Feb 2018 11:22:56 +0000 (11:22 +0000)
sbr/fmt_rfc2047.c

index 2fe63e5..8022c2f 100644 (file)
@@ -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++) {