Eliminate compiler warnings.
authorTimo Korvola <tkorvola@iki.fi>
Thu, 22 Feb 2018 20:07:15 +0000 (22:07 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Thu, 22 Feb 2018 20:07:15 +0000 (22:07 +0200)
Some of this is rather silly.

src/curses/ux_input.c
src/dumb/dumb_output.c

index db9fa9c715ea18d41fdff0b3576df0ee4f3a32d7..b3e90329abdd4d85a008b834d648beae605836b2 100644 (file)
@@ -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. */
index f8b6382f8020af13a9be9301e9d652b729a736d2..cd879129dc7ef3ef92484387e5fd80aaf9b0a3e6 100644 (file)
@@ -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;
 }