summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-10-13 18:02:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-10-13 18:02:27 (GMT)
commit6a82abf5e33b58989732a0858f89347235fabb42 (patch)
tree1ae27bfd1c48a5791772756a8a641dc8c1feeeeb /generic
parent6fc8497420c43eff04a6d4b6523003b0550f0fbf (diff)
downloadtcl-6a82abf5e33b58989732a0858f89347235fabb42.zip
tcl-6a82abf5e33b58989732a0858f89347235fabb42.tar.gz
tcl-6a82abf5e33b58989732a0858f89347235fabb42.tar.bz2
3423069 silence compiler warnings.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclTest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 30c95c8..03afad9 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -75,7 +75,7 @@ typedef struct TestAsyncHandler {
/* Next is list of handlers. */
} TestAsyncHandler;
-TCL_DECLARE_MUTEX(asyncTestMutex);
+TCL_DECLARE_MUTEX(asyncTestMutex)
static TestAsyncHandler *firstHandler = NULL;
@@ -7109,7 +7109,8 @@ TestparseargsCmd(
int objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Arguments. */
{
- int count = objc, foo = 0;
+ static int foo = 0;
+ int count = objc;
Tcl_Obj **remObjv, *result[3];
Tcl_ArgvInfo argTable[] = {
{TCL_ARGV_CONSTANT, "-bool", INT2PTR(1), &foo, "booltest", NULL},