summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-14 16:03:13 (GMT)
committernijtmans <nijtmans>2011-01-14 16:03:13 (GMT)
commitb297ff0dce26cde3cc43c0f929a44976936b601e (patch)
tree030e3a61e8f002086132d677818d7a1f371fa98a /win
parentaaf249e2a83d00881890e2bba9bc1ede29309179 (diff)
downloadtcl-b297ff0dce26cde3cc43c0f929a44976936b601e.zip
tcl-b297ff0dce26cde3cc43c0f929a44976936b601e.tar.gz
tcl-b297ff0dce26cde3cc43c0f929a44976936b601e.tar.bz2
Fix gcc-4.5.2 error: lvalue required as ...
(backported from 8.5/8.6)
Diffstat (limited to 'win')
-rw-r--r--win/tclWinDde.c6
-rw-r--r--win/tclWinReg.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c
index 00e41a9..480c91f 100644
--- a/win/tclWinDde.c
+++ b/win/tclWinDde.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: tclWinDde.c,v 1.13.2.7 2006/04/05 20:50:46 dgp Exp $
+ * RCS: @(#) $Id: tclWinDde.c,v 1.13.2.8 2011/01/14 16:03:14 nijtmans Exp $
*/
#include "tclPort.h"
@@ -987,7 +987,7 @@ Tcl_DdeObjCmd(
ClientData clientData, /* Used only for deletion */
Tcl_Interp *interp, /* The interp we are sending from */
int objc, /* Number of arguments */
- Tcl_Obj *CONST objv[]) /* The arguments */
+ Tcl_Obj *CONST *objv) /* The arguments */
{
enum {
DDE_SERVERNAME,
@@ -1308,7 +1308,7 @@ Tcl_DdeObjCmd(
}
objc -= (async + 3);
- ((Tcl_Obj **) objv) += (async + 3);
+ objv += (async + 3);
/*
* See if the target interpreter is local. If so, execute
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index cdce1aa..c5a5c6f 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinReg.c,v 1.21.2.7 2007/05/15 16:08:22 dgp Exp $
+ * RCS: @(#) $Id: tclWinReg.c,v 1.21.2.8 2011/01/14 16:03:13 nijtmans Exp $
*/
#include <tclPort.h>
@@ -790,7 +790,9 @@ GetValue(
Tcl_NewStringObj(Tcl_DStringValue(&buf),
Tcl_DStringLength(&buf)));
if (regWinProcs->useWide) {
- while (*((Tcl_UniChar *)p)++ != 0) {}
+ Tcl_UniChar* up = (Tcl_UniChar*) p;
+ while (*up++ != 0) {}
+ p = (char*) up;
} else {
while (*p++ != '\0') {}
}