summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-04-03 20:17:01 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-04-03 20:17:01 (GMT)
commit4ac8a18e322f01b25ae257fcc0275ea6d3aa3c81 (patch)
tree6909766d167011b99ee390e421db7f35904a4f29 /generic
parentee67b11493b7077d28350ebca11c54f83120c507 (diff)
downloadtk-4ac8a18e322f01b25ae257fcc0275ea6d3aa3c81.zip
tk-4ac8a18e322f01b25ae257fcc0275ea6d3aa3c81.tar.gz
tk-4ac8a18e322f01b25ae257fcc0275ea6d3aa3c81.tar.bz2
Remove unused variable.
Remove tkStubLib.o from tk85.dll. On Windows, data cannot be exported from dll's anyway, so it's just dead code. On UNIX, it makes a difference, and it would be a potential incompatibility to remove it.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvUtil.c4
-rw-r--r--generic/tkWindow.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c
index eca3789..b4d0c3b 100644
--- a/generic/tkCanvUtil.c
+++ b/generic/tkCanvUtil.c
@@ -1660,8 +1660,10 @@ TkCanvTranslatePath(
double *a, *b, *t; /* Pointers to parts of the temporary
* storage */
int i, j; /* Loop counters */
+#ifndef NDEBUG
int maxOutput; /* Maximum number of outputs that we will
* allow */
+#endif
double limit[4]; /* Boundries at which clipping occurs */
double staticSpace[480]; /* Temp space from the stack */
@@ -1756,7 +1758,9 @@ TkCanvTranslatePath(
* This is the loop that makes the four passes through the data.
*/
+#ifndef NDEBUG
maxOutput = numVertex*3;
+#endif
for (j=0; j<4; j++){
double xClip = limit[j];
int inside = a[0]<xClip;
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index ac69455..04d2639 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -3275,9 +3275,11 @@ Initialize(
Tcl_SetMainLoop(Tk_MainLoop);
-#undef Tk_InitStubs
-
+#ifndef _WIN32
+ /* On Windows, this has no added value. */
+# undef Tk_InitStubs
Tk_InitStubs(interp, TK_VERSION, 1);
+#endif
/*
* Initialized the themed widget set