From: Timo Korvola Date: Thu, 22 Feb 2018 20:07:15 +0000 (+0200) Subject: Eliminate compiler warnings. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=e0078edd16881f4964131bc07c5f74ace944fbf4;p=liskon_frotz.git Eliminate compiler warnings. Some of this is rather silly. --- diff --git a/src/curses/ux_input.c b/src/curses/ux_input.c index db9fa9c..b3e9032 100644 --- a/src/curses/ux_input.c +++ b/src/curses/ux_input.c @@ -115,6 +115,7 @@ static bool timeout_left(struct timeval *diff) } +#if 0 /* * Time left until input timeout. Return the number of milliseconds left * until the input timeout elapses, zero if it has already elapsed, -1 if @@ -129,6 +130,7 @@ static int timeout_to_ms() return INT_MAX - 1000; return diff.tv_sec * 1000 + diff.tv_usec / 1000; } +#endif /* @@ -506,6 +508,7 @@ zchar os_read_line (int bufmax, zchar *buf, int timeout, int width, refresh(); ch = unix_read_char(1); getyx(stdscr, y, x2); + x2++; /*XXX Eliminate compiler warning. */ width = h_screen_width - margin; max = MIN(width, bufmax); /* The screen has shrunk and input no longer fits. Chop. */ diff --git a/src/dumb/dumb_output.c b/src/dumb/dumb_output.c index f8b6382..cd87912 100644 --- a/src/dumb/dumb_output.c +++ b/src/dumb/dumb_output.c @@ -116,8 +116,9 @@ void os_set_cursor(int row, int col) cursor_row = h_screen_rows - 1; } -bool os_repaint_window(int win, int ypos_old, int ypos_new, int xpos, - int ysize, int xsize) +bool os_repaint_window(int UNUSED(win), int UNUSED(ypos_old), + int UNUSED(ypos_new), int UNUSED(xpos), + int UNUSED(ysize), int UNUSED(xsize)) { return FALSE; }