From 491b40897f58f7e15e89b5ce358334618b728b32 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 16 Oct 2017 12:45:19 +0300 Subject: [PATCH] Ignore Qt specific config options silently If the binary wasn't compiled with Qt, don't complain about Qt specific config options. --- src/files.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index 8abacce66..4c46d23d0 100644 --- a/src/files.c +++ b/src/files.c @@ -2674,24 +2674,29 @@ char *origbuf; } else if (match_varname(buf, "SOUND", 5)) { add_sound_mapping(bufp); #endif -#ifdef QT_GRAPHICS - /* These should move to wc_ options */ } else if (match_varname(buf, "QT_TILEWIDTH", 12)) { +#ifdef QT_GRAPHICS extern char *qt_tilewidth; if (qt_tilewidth == NULL) qt_tilewidth = dupstr(bufp); +#endif } else if (match_varname(buf, "QT_TILEHEIGHT", 13)) { +#ifdef QT_GRAPHICS extern char *qt_tileheight; if (qt_tileheight == NULL) qt_tileheight = dupstr(bufp); +#endif } else if (match_varname(buf, "QT_FONTSIZE", 11)) { +#ifdef QT_GRAPHICS extern char *qt_fontsize; if (qt_fontsize == NULL) qt_fontsize = dupstr(bufp); +#endif } else if (match_varname(buf, "QT_COMPACT", 10)) { +#ifdef QT_GRAPHICS extern int qt_compact_mode; qt_compact_mode = atoi(bufp);