Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib fix unused warnings



details:   https://anonhg.NetBSD.org/src/rev/a942a804be82
branches:  trunk
changeset: 790625:a942a804be82
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 19:53:59 2013 +0000

description:
fix unused warnings

diffstat:

 lib/libcurses/mvwin.c   |  7 +++----
 lib/libmenu/internals.c |  7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r 7465cdcec7a0 -r a942a804be82 lib/libcurses/mvwin.c
--- a/lib/libcurses/mvwin.c     Fri Oct 18 19:53:34 2013 +0000
+++ b/lib/libcurses/mvwin.c     Fri Oct 18 19:53:59 2013 +0000
@@ -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 @@
 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 @@
                return ERR;
 
        x = parent->begx + dx;
-       y = parent->begy + dy;
 
        win->ch_off = x;
        /* Point the line pointers to line space */
diff -r 7465cdcec7a0 -r a942a804be82 lib/libmenu/internals.c
--- a/lib/libmenu/internals.c   Fri Oct 18 19:53:34 2013 +0000
+++ b/lib/libmenu/internals.c   Fri Oct 18 19:53:59 2013 +0000
@@ -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@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -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 @@
 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 @@
                                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,



Home | Main Index | Thread Index | Old Index