summaryrefslogtreecommitdiffstats
path: root/generic/tclStubLib.c
diff options
context:
space:
mode:
authorrmax <rmax>2004-03-18 18:54:58 (GMT)
committerrmax <rmax>2004-03-18 18:54:58 (GMT)
commit395490646bbfb29fcab6b1b1b8a5e07a4df44a61 (patch)
tree9d537d73661574c4bab5dc78f841b3584cc72c05 /generic/tclStubLib.c
parent767d68ec6d958a72ef767196d7efbd8d9b9f387d (diff)
downloadtcl-395490646bbfb29fcab6b1b1b8a5e07a4df44a61.zip
tcl-395490646bbfb29fcab6b1b1b8a5e07a4df44a61.tar.gz
tcl-395490646bbfb29fcab6b1b1b8a5e07a4df44a61.tar.bz2
* generic/tclNamesp.c: Added temporary pointer variables to work
* generic/tclStubLib.c: around warnings related to * unix/tclUnixChan.c: strict aliasing with GCC 3.3.
Diffstat (limited to 'generic/tclStubLib.c')
-rw-r--r--generic/tclStubLib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c
index c650dac..91e5cef 100644
--- a/generic/tclStubLib.c
+++ b/generic/tclStubLib.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStubLib.c,v 1.6 2002/12/04 07:07:59 hobbs Exp $
+ * RCS: @(#) $Id: tclStubLib.c,v 1.7 2004/03/18 18:55:16 rmax Exp $
*/
/*
@@ -88,6 +88,7 @@ Tcl_InitStubs (interp, version, exact)
{
CONST char *actualVersion = NULL;
TclStubs *tmp;
+ TclStubs **tmpp;
/*
* We can't optimize this check by caching tclStubsPtr because
@@ -100,8 +101,10 @@ Tcl_InitStubs (interp, version, exact)
return NULL;
}
+ /* This is needed to satisfy GCC 3.3's strict aliasing rules */
+ tmpp = &tmp;
actualVersion = Tcl_PkgRequireEx(interp, "Tcl", version, exact,
- (ClientData *) &tmp);
+ (ClientData *) tmpp);
if (actualVersion == NULL) {
tclStubsPtr = NULL;
return NULL;