summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-08 20:28:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-08 20:28:19 (GMT)
commit3588e9bb50fc4405a0c6d00631c2317b95f45257 (patch)
tree19316394432448d84d95a9069c57a13f7d7fed04 /generic/tkTextDisp.c
parentc7e041cfd4f24255e924362fb73214caaf51f5de (diff)
downloadtk-3588e9bb50fc4405a0c6d00631c2317b95f45257.zip
tk-3588e9bb50fc4405a0c6d00631c2317b95f45257.tar.gz
tk-3588e9bb50fc4405a0c6d00631c2317b95f45257.tar.bz2
Silence compiler warnings
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 6532868..ef977bb 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextDisp.c,v 1.42 2004/06/07 16:23:52 vincentdarley Exp $
+ * RCS: @(#) $Id: tkTextDisp.c,v 1.43 2004/06/08 20:28:19 dgp Exp $
*/
#include "tkPort.h"
@@ -6120,7 +6120,6 @@ DlineXOfIndex(textPtr, dlPtr, byteIndex)
* coordinate. */
{
register TkTextDispChunk *chunkPtr = dlPtr->chunkPtr;
- TkTextIndex index;
int x;
if (byteIndex == 0 || chunkPtr == NULL) return 0;
@@ -6130,7 +6129,6 @@ DlineXOfIndex(textPtr, dlPtr, byteIndex)
* the desired byte index.
*/
- index = dlPtr->index;
chunkPtr = dlPtr->chunkPtr;
while (byteIndex > 0) {
if (byteIndex < chunkPtr->numBytes) {