mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05: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:
parent
6a8e0ccd9b
commit
fe8cd7d7ba
@ -119,7 +119,9 @@ dlg_format_buttons(struct dialog_data *dlg_data,
|
|||||||
struct widget_data *widget_data, int n,
|
struct widget_data *widget_data, int n,
|
||||||
int x, int *y, int w, int *rw, enum format_align align, int format_only)
|
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;
|
struct terminal *term = dlg_data->win->term;
|
||||||
|
#endif
|
||||||
int i1 = 0;
|
int i1 = 0;
|
||||||
|
|
||||||
while (i1 < n) {
|
while (i1 < n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user