diff options
Diffstat (limited to 'generic/tclStubLib.c')
-rw-r--r-- | generic/tclStubLib.c | 7 |
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; |