mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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:
parent
fe8cd7d7ba
commit
35acde4a10
@ -217,7 +217,9 @@ dlg_format_text_do(struct dialog_data *dlg_data,
|
|||||||
struct color_pair *color, enum format_align align,
|
struct color_pair *color, enum format_align align,
|
||||||
int format_only)
|
int format_only)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_UTF8
|
||||||
struct terminal *term = dlg_data->win->term;
|
struct terminal *term = dlg_data->win->term;
|
||||||
|
#endif
|
||||||
int line_width;
|
int line_width;
|
||||||
int firstline = 1;
|
int firstline = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user