summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2006-11-13 22:39:56 (GMT)
committerKevin B Kenny <kennykb@acm.org>2006-11-13 22:39:56 (GMT)
commit57cba80ccd1f62287a6b80f4c5c52689f2b2db0f (patch)
tree31fdb9953de50645a5720a4a5bd9a7109b37fa81
parentab0269bc6ff39bae75790de51289dd88201b657b (diff)
downloadtcl-57cba80ccd1f62287a6b80f4c5c52689f2b2db0f.zip
tcl-57cba80ccd1f62287a6b80f4c5c52689f2b2db0f.tar.gz
tcl-57cba80ccd1f62287a6b80f4c5c52689f2b2db0f.tar.bz2
Silence a compiler warining about presenting a volatile pointer to 'memset'
-rw-r--r--ChangeLog7
-rw-r--r--generic/tclThreadStorage.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c9d31d6..b73d48f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-11-13 Kevin Kenny <kennykb@users.sourceforge.net>
+
+ * generic/tclThreadStorage.c (Tcl_InitThreadStorage,
+ Tcl_FinalizeThreadStorage): Silence a compiler warning about
+ presenting a volatile pointer to 'memset'.
+
+
2006-11-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclIO.c: When [gets] on a binary channel needs to use
diff --git a/generic/tclThreadStorage.c b/generic/tclThreadStorage.c
index c0ab032..9f25c32 100644
--- a/generic/tclThreadStorage.c
+++ b/generic/tclThreadStorage.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclThreadStorage.c,v 1.11 2006/11/13 08:23:09 das Exp $
+ * RCS: @(#) $Id: tclThreadStorage.c,v 1.12 2006/11/13 22:39:56 kennykb Exp $
*/
#include "tclInt.h"
@@ -299,7 +299,7 @@ TclInitThreadStorage(void)
* We also initialize the cache.
*/
- memset(&threadStorageCache, 0,
+ memset((void*) &threadStorageCache, 0,
sizeof(ThreadStorage) * STORAGE_CACHE_SLOTS);
/*
@@ -529,7 +529,7 @@ TclFinalizeThreadStorage(void)
* Clear out the thread storage cache as well.
*/
- memset(&threadStorageCache, 0,
+ memset((void*) &threadStorageCache, 0,
sizeof(ThreadStorage) * STORAGE_CACHE_SLOTS);
/*