1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

big dialogs: fix unused term in dlg_format_buttons

Fix this error when configured with --enable-debug --disable-utf-8:

      [CC]   src/bfu/button.o
cc1: warnings being treated as errors
/home/Kalle/src/elinks-0.13/src/bfu/button.c: In function ‘dlg_format_buttons’:
/home/Kalle/src/elinks-0.13/src/bfu/button.c:122: error: unused variable ‘term’
This commit is contained in:
Kalle Olavi Niemitalo 2009-04-26 11:26:44 +03:00 committed by Kalle Olavi Niemitalo
parent 6a8e0ccd9b
commit fe8cd7d7ba

View File

@ -119,7 +119,9 @@ dlg_format_buttons(struct dialog_data *dlg_data,
struct widget_data *widget_data, int n,
int x, int *y, int w, int *rw, enum format_align align, int format_only)
{
#ifdef CONFIG_UTF8
struct terminal *term = dlg_data->win->term;
#endif
int i1 = 0;
while (i1 < n) {