summaryrefslogtreecommitdiffstats
path: root/win/tclWinTest.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-07-19 22:16:57 (GMT)
committernijtmans <nijtmans>2008-07-19 22:16:57 (GMT)
commit9c9a7764a3a00160ff48011547624ecf659a3dc9 (patch)
tree25fe86a4073108f0fa0430653d1cd81fae489cf3 /win/tclWinTest.c
parent408b3815ace54fe1580fe6b3c0aea3403732edf1 (diff)
downloadtcl-9c9a7764a3a00160ff48011547624ecf659a3dc9.zip
tcl-9c9a7764a3a00160ff48011547624ecf659a3dc9.tar.gz
tcl-9c9a7764a3a00160ff48011547624ecf659a3dc9.tar.bz2
Fix a gcc warning when compiling Tcl with mingw32
tclWinTest.c: In function `TestplatformChmod': tclWinTest.c:706: warning: dereferencing type-punned pointer will break strict-a liasing rules
Diffstat (limited to 'win/tclWinTest.c')
-rw-r--r--win/tclWinTest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index 946f179..eb2ccf8 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.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: tclWinTest.c,v 1.22 2007/12/13 15:28:44 dgp Exp $
+ * RCS: @(#) $Id: tclWinTest.c,v 1.23 2008/07/19 22:16:57 nijtmans Exp $
*/
#include "tclInt.h"
@@ -700,10 +700,10 @@ TestplatformChmod(
acl_readOnly_found = FALSE;
for (j = 0; j < ACLSize.AceCount; j++) {
- PACL *pACE2;
+ LPVOID pACE2;
ACE_HEADER *phACE2;
- if (!getAceProc(curAcl, j, (LPVOID *) &pACE2)) {
+ if (!getAceProc(curAcl, j, &pACE2)) {
goto done;
}
@@ -736,7 +736,7 @@ TestplatformChmod(
* Copy the current ACE from the old to the new ACL.
*/
- if (!addAceProc(newAcl, ACL_REVISION, MAXDWORD, pACE2,
+ if (!addAceProc(newAcl, ACL_REVISION, MAXDWORD, (PACL *) pACE2,
((PACE_HEADER) pACE2)->AceSize)) {
goto done;
}