fix unused warnings

This commit is contained in:
christos 2013-10-18 19:53:59 +00:00
parent 3dd8ce9f5e
commit cbdcb619b0
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mvwin.c,v 1.17 2012/09/28 06:03:45 blymn Exp $ */
/* $NetBSD: mvwin.c,v 1.18 2013/10/18 19:53:59 christos Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)mvwin.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: mvwin.c,v 1.17 2012/09/28 06:03:45 blymn Exp $");
__RCSID("$NetBSD: mvwin.c,v 1.18 2013/10/18 19:53:59 christos Exp $");
#endif
#endif /* not lint */
@ -52,7 +52,7 @@ int
mvderwin(WINDOW *win, int dy, int dx)
{
WINDOW *parent;
int x, y, i;
int x, i;
__LINE *lp, *olp;
#ifdef HAVE_WCHAR
__LDATA *cp;
@ -73,7 +73,6 @@ mvderwin(WINDOW *win, int dy, int dx)
return ERR;
x = parent->begx + dx;
y = parent->begy + dy;
win->ch_off = x;
/* Point the line pointers to line space */

View File

@ -1,4 +1,4 @@
/* $NetBSD: internals.c,v 1.16 2012/12/30 12:27:09 blymn Exp $ */
/* $NetBSD: internals.c,v 1.17 2013/10/18 19:53:59 christos Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn (blymn@baea.com.au, brett_lymn@yahoo.com.au)
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: internals.c,v 1.16 2012/12/30 12:27:09 blymn Exp $");
__RCSID("$NetBSD: internals.c,v 1.17 2013/10/18 19:53:59 christos Exp $");
#include <menu.h>
#include <ctype.h>
@ -517,7 +517,7 @@ _menui_draw_item(MENU *menu, int item)
int
_menui_draw_menu(MENU *menu)
{
int rowmajor, i, j, k, row = -1, col = -1, stride;
int rowmajor, i, j, k, row = -1, stride;
int incr, cur_row, offset, row_count;
rowmajor = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR);
@ -555,7 +555,6 @@ _menui_draw_menu(MENU *menu)
wattrset(menu->scrwin, menu->back);
if (row < 0) {
row = menu->items[menu->item_count - 1]->row;
col = menu->items[menu->item_count - 1]->col;
}
wmove(menu->scrwin, cur_row,