Fix unreferenced variable

This commit is contained in:
Pasi Kallinen
2016-01-10 18:24:38 +02:00
parent fe01018d90
commit a8172e1208

View File

@@ -3212,7 +3212,7 @@ const char *str;
int int
tty_nhgetch() tty_nhgetch()
{ {
int i, tmp; int i;
#ifdef UNIX #ifdef UNIX
/* kludge alert: Some Unix variants return funny values if getc() /* kludge alert: Some Unix variants return funny values if getc()
* is called, interrupted, and then called again. There * is called, interrupted, and then called again. There
@@ -3247,10 +3247,12 @@ tty_nhgetch()
if (ttyDisplay && ttyDisplay->toplin == 1) if (ttyDisplay && ttyDisplay->toplin == 1)
ttyDisplay->toplin = 2; ttyDisplay->toplin = 2;
#ifdef TTY_TILES_ESCCODES #ifdef TTY_TILES_ESCCODES
/* hack to force output of the window select code */ {
tmp = vt_tile_current_window; /* hack to force output of the window select code */
vt_tile_current_window++; int tmp = vt_tile_current_window;
print_vt_code2(AVTC_SELECT_WINDOW, tmp); vt_tile_current_window++;
print_vt_code2(AVTC_SELECT_WINDOW, tmp);
}
#endif /* TTY_TILES_ESCCODES */ #endif /* TTY_TILES_ESCCODES */
return i; return i;
} }