diff options
author | rmax <rmax> | 2004-03-18 18:54:58 (GMT) |
---|---|---|
committer | rmax <rmax> | 2004-03-18 18:54:58 (GMT) |
commit | 395490646bbfb29fcab6b1b1b8a5e07a4df44a61 (patch) | |
tree | 9d537d73661574c4bab5dc78f841b3584cc72c05 /generic/tclNamesp.c | |
parent | 767d68ec6d958a72ef767196d7efbd8d9b9f387d (diff) | |
download | tcl-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/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index e596e70..a4c4f2e 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -21,7 +21,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.35 2003/12/24 04:18:20 davygrvy Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.36 2004/03/18 18:54:58 rmax Exp $ */ #include "tclInt.h" @@ -3093,6 +3093,7 @@ NamespaceEvalCmd(dummy, interp, objc, objv) { Tcl_Namespace *namespacePtr; CallFrame frame; + CallFrame *framep; Tcl_Obj *objPtr; char *name; int length, result; @@ -3130,7 +3131,9 @@ NamespaceEvalCmd(dummy, interp, objc, objv) * the command(s). */ - result = Tcl_PushCallFrame(interp, (Tcl_CallFrame *) &frame, + /* This is needed to satisfy GCC 3.3's strict aliasing rules */ + framep = &frame; + result = Tcl_PushCallFrame(interp, (Tcl_CallFrame *) framep, namespacePtr, /*isProcCallFrame*/ 0); if (result != TCL_OK) { return TCL_ERROR; |