summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-05-08 15:51:40 (GMT)
committervincentdarley <vincentdarley>2004-05-08 15:51:40 (GMT)
commit9a2d2fb1dcd0564f603aada088c4ca040b17a31e (patch)
treeb9df2fd0ae95c2aadebd2d858bd8ce4f5e09ae64 /generic
parent8b6eab706792604345452c702f230ee1ea71477a (diff)
downloadtcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.zip
tcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.tar.gz
tcl-9a2d2fb1dcd0564f603aada088c4ca040b17a31e.tar.bz2
fix to some compiler warnings
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c8
-rw-r--r--generic/tclIOUtil.c4
2 files changed, 8 insertions, 4 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index adbae7a..0307ee1 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.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: tclFileName.c,v 1.54 2004/05/07 07:44:37 vincentdarley Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.55 2004/05/08 15:51:41 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -1679,6 +1679,9 @@ TclGlob(interp, pattern, pathPrefix, globFlags, types)
tail += driveNameLen;
break;
}
+ case TCL_PATH_RELATIVE: {
+ /* Do nothing */
+ }
}
Tcl_DecrRefCount(temp);
}
@@ -1702,7 +1705,8 @@ TclGlob(interp, pattern, pathPrefix, globFlags, types)
if (pathPrefix == NULL) {
int driveNameLen;
Tcl_Obj *driveName;
- if (TclFSNonnativePathType(tail, strlen(tail), NULL, &driveNameLen,
+ if (TclFSNonnativePathType(tail, (int) strlen(tail), NULL,
+ &driveNameLen,
&driveName) == TCL_PATH_ABSOLUTE) {
pathPrefix = driveName;
tail += driveNameLen;
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 48621d8..3d3ef91 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.102 2004/05/07 07:44:37 vincentdarley Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.103 2004/05/08 15:51:41 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -553,7 +553,7 @@ static void
FsRecacheFilesystemList(void)
{
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&tclFsDataKey);
- FilesystemRecord *fsRecPtr, *tmpFsRecPtr;
+ FilesystemRecord *fsRecPtr, *tmpFsRecPtr = NULL;
/* Trash the current cache */
fsRecPtr = tsdPtr->filesystemList;