summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-08 14:41:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-08 14:41:46 (GMT)
commit404bcc3435d7a5ce178b4b84c86833285d3aa1d4 (patch)
tree6536ed8e4e2b792c8a24b07fe63701c5f7bde8c1 /win
parentdbb3b8800c3ddc4749f02953e684ae4104631be1 (diff)
downloadtcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.zip
tcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.tar.gz
tcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.tar.bz2
Decorate Tcl_Exit() and Tcl_SetExitProc()'s argument with TCL_NORETURN as appropriate, as already done with Tcl_Panic() earlier.
Fix minor msvc compiler warning in tclWinFile.c
Diffstat (limited to 'win')
-rwxr-xr-xwin/tclWinFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index be9c947..25c6ea4 100755
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -1467,8 +1467,7 @@ TclpGetUserHome(
* User exists but has no home dir. Return
* "{GetProfilesDirectory}/<user>".
*/
- DWORD size = MAX_PATH;
- int i;
+ DWORD i, size = MAX_PATH;
GetProfilesDirectoryW(buf, &size);
for (i = 0; i < size; ++i){
if (buf[i] == '\\') buf[i] = '/';