missing prototype warning ifndef TEXTCOLOR
../win/tty/wintty.c: In function ‘set_item_state’:
../win/tty/wintty.c:1174:9: warning: implicit declaration of function
‘term_start_color’; did you mean ‘term_start_attr’?
[-Wimplicit-function-declaration]
1174 | term_start_color(item->color);
| ^~~~~~~~~~~~~~~~
| term_start_attr
../win/tty/wintty.c:1178:9: warning: implicit declaration
of function ‘term_end_color’; did you mean ‘term_end_attr’?
[-Wimplicit-function-declaration]
1178 | term_end_color();
| ^~~~~~~~~~~~~~
| term_end_attr
This commit is contained in:
@@ -1170,12 +1170,16 @@ set_item_state(
|
|||||||
HUPSKIP();
|
HUPSKIP();
|
||||||
tty_curs(window, 4, lineno);
|
tty_curs(window, 4, lineno);
|
||||||
term_start_attr(item->attr);
|
term_start_attr(item->attr);
|
||||||
|
#ifdef TEXTCOLOR
|
||||||
if (item->color != NO_COLOR)
|
if (item->color != NO_COLOR)
|
||||||
term_start_color(item->color);
|
term_start_color(item->color);
|
||||||
|
#endif
|
||||||
(void) putchar(ch);
|
(void) putchar(ch);
|
||||||
ttyDisplay->curx++;
|
ttyDisplay->curx++;
|
||||||
|
#ifdef TEXTCOLOR
|
||||||
if (item->color != NO_COLOR)
|
if (item->color != NO_COLOR)
|
||||||
term_end_color();
|
term_end_color();
|
||||||
|
#endif
|
||||||
term_end_attr(item->attr);
|
term_end_attr(item->attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user