summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2020-03-06 20:15:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2020-03-06 20:15:24 (GMT)
commit9bfe3724215a96c07d1f1067c75389798f54a8c5 (patch)
tree1046f1c97cca95098f231d6067576f20801b2a95 /generic/tclFileName.c
parente72ebf58a150fcbf041ed40495472805d08d8ce1 (diff)
downloadtcl-9bfe3724215a96c07d1f1067c75389798f54a8c5.zip
tcl-9bfe3724215a96c07d1f1067c75389798f54a8c5.tar.gz
tcl-9bfe3724215a96c07d1f1067c75389798f54a8c5.tar.bz2
more
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index ee2321d..a069ff1 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -1220,7 +1220,7 @@ DoTildeSubst(
/* ARGSUSED */
int
Tcl_GlobObjCmd(
- ClientData dummy, /* Not used. */
+ TCL_UNUSED(ClientData),
Tcl_Interp *interp, /* Current interpreter. */
int objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument objects. */
@@ -1241,7 +1241,6 @@ Tcl_GlobObjCmd(
};
enum pathDirOptions {PATH_NONE = -1 , PATH_GENERAL = 0, PATH_DIR = 1};
Tcl_GlobTypeData *globTypes = NULL;
- (void)dummy;
globFlags = 0;
join = 0;
@@ -2634,21 +2633,25 @@ Tcl_GetBlocksFromStat(
#endif
}
+#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
unsigned
Tcl_GetBlockSizeFromStat(
const Tcl_StatBuf *statPtr)
{
-#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
return statPtr->st_blksize;
+}
#else
- (void)statPtr;
+unsigned
+Tcl_GetBlockSizeFromStat(
+ TCL_UNUSED(const Tcl_StatBuf *))
+{
/*
* Not a great guess, but will do...
*/
return GUESSED_BLOCK_SIZE;
-#endif
}
+#endif
/*
* Local Variables: