summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-08 20:11:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-08 20:11:18 (GMT)
commit32f4bf446ed2bbdf42db6652cc19414e14f5f513 (patch)
treebfa77534dc321fb6d5ab140b246cf14c545854da /generic/tkListbox.c
parent77906eb14a3e5489b402712eb8cb1d6ccdc1e8ad (diff)
downloadtk-32f4bf446ed2bbdf42db6652cc19414e14f5f513.zip
tk-32f4bf446ed2bbdf42db6652cc19414e14f5f513.tar.gz
tk-32f4bf446ed2bbdf42db6652cc19414e14f5f513.tar.bz2
silence compiler warning
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r--generic/tkListbox.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 0f60a95..fd02a27 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkListbox.c,v 1.29.2.1 2003/11/11 19:41:50 hobbs Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.29.2.2 2004/06/08 20:11:18 dgp Exp $
*/
#include "tkPort.h"
@@ -2941,7 +2941,7 @@ ListboxSelect(listPtr, first, last, select)
int select; /* 1 means select items, 0 means
* deselect them. */
{
- int i, firstRedisplay, increment, oldCount;
+ int i, firstRedisplay, oldCount;
Tcl_HashEntry *entry;
int new;
@@ -2961,7 +2961,6 @@ ListboxSelect(listPtr, first, last, select)
}
oldCount = listPtr->numSelected;
firstRedisplay = -1;
- increment = select ? 1 : -1;
/*
* For each index in the range, find it in our selection hash table.