1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

big dialogs: fix unused term in dlg_format_text_do

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’
This commit is contained in:
Kalle Olavi Niemitalo 2009-04-26 11:47:03 +03:00 committed by Kalle Olavi Niemitalo
parent fe8cd7d7ba
commit 35acde4a10

View File

@ -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;