From 35acde4a107ee61a838551c412f309fb0e340e6e Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 26 Apr 2009 11:47:03 +0300 Subject: [PATCH] big dialogs: fix unused term in dlg_format_text_do MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix this error when configured with --enable-debug --disable-utf-8: [CC] src/bfu/text.o cc1: warnings being treated as errors /home/Kalle/src/elinks-0.13/src/bfu/text.c: In function ‘dlg_format_text_do’: /home/Kalle/src/elinks-0.13/src/bfu/text.c:220: error: unused variable ‘term’ --- src/bfu/text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bfu/text.c b/src/bfu/text.c index 49989edc..9031549f 100644 --- a/src/bfu/text.c +++ b/src/bfu/text.c @@ -217,7 +217,9 @@ dlg_format_text_do(struct dialog_data *dlg_data, struct color_pair *color, enum format_align align, int format_only) { +#ifdef CONFIG_UTF8 struct terminal *term = dlg_data->win->term; +#endif int line_width; int firstline = 1;