diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-14 12:30:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-14 12:30:44 (GMT) |
commit | 08e4f14e0f32d64cd4cbb48601cccbaf525a272a (patch) | |
tree | 70ef17719443403ed14aa30905f3187fa8a14bb2 /generic/tkBind.c | |
parent | e0b895874d5fa39f6d4134b407e930b80ee3ecd7 (diff) | |
download | tk-08e4f14e0f32d64cd4cbb48601cccbaf525a272a.zip tk-08e4f14e0f32d64cd4cbb48601cccbaf525a272a.tar.gz tk-08e4f14e0f32d64cd4cbb48601cccbaf525a272a.tar.bz2 |
Eliminate some more unneeded write-only variables (discovered by gcc-4.6)
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index ec46650..e77667f 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -192,7 +192,7 @@ typedef struct { typedef struct PatSeq { int numPats; /* Number of patterns in sequence (usually * 1). */ - char *script; /* Binding script to evaluate when sequence + char *script; /* Binding script to evaluate when sequence * matches (ckalloc()ed) */ int flags; /* Miscellaneous flag values; see below for * definitions. */ @@ -1223,7 +1223,7 @@ Tk_BindEvent( TkDisplay *oldDispPtr; XEvent *ringPtr; PatSeq *vMatchDetailList, *vMatchNoDetailList; - int flags, oldScreen, i; + int flags, oldScreen; Tcl_Interp *interp; Tcl_DString scripts, savedResult; Detail detail; @@ -1475,7 +1475,6 @@ Tk_BindEvent( p = Tcl_DStringValue(&scripts); end = p + Tcl_DStringLength(&scripts); - i = 0; /* * Be carefule when dereferencing screenPtr or bindInfoPtr. If we evaluate |