summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-05-30 08:46:12 (GMT)
committersebres <sebres@users.sourceforge.net>2017-05-30 08:46:12 (GMT)
commit184a85e83b869a1c03e6ff7e4531ff0c96330c7d (patch)
tree9d93ddeacdeb3266bb14fe64ceac1cf1a684e0ad /generic/tclClock.c
parent3feeaaf027b3a7cc8332f64b0c0e39769edb4163 (diff)
downloadtcl-184a85e83b869a1c03e6ff7e4531ff0c96330c7d.zip
tcl-184a85e83b869a1c03e6ff7e4531ff0c96330c7d.tar.gz
tcl-184a85e83b869a1c03e6ff7e4531ff0c96330c7d.tar.bz2
small code review: resolves several warning on some compilers
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index c980a27..0895bbb 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -606,7 +606,7 @@ ClockMCDict(ClockFmtScnCmdArgs *opts)
if (opts->localeObj == NULL) {
Tcl_SetResult(opts->interp,
- "locale not specified and no default locale set", TCL_STATIC);
+ (char*)"locale not specified and no default locale set", TCL_STATIC);
Tcl_SetErrorCode(opts->interp, "CLOCK", "badOption", NULL);
return NULL;
}
@@ -3080,7 +3080,7 @@ ClockParseFmtScnArgs(
if ((saw & (1 << CLC_ARGS_GMT))
&& (saw & (1 << CLC_ARGS_TIMEZONE))) {
- Tcl_SetResult(interp, "cannot use -gmt and -timezone in same call", TCL_STATIC);
+ Tcl_SetResult(interp, (char*)"cannot use -gmt and -timezone in same call", TCL_STATIC);
Tcl_SetErrorCode(interp, "CLOCK", "gmtWithTimezone", NULL);
return TCL_ERROR;
}
@@ -3335,7 +3335,7 @@ ClockScanObjCmd(
/* [SB] TODO: Perhaps someday we'll localize the legacy code. Right now, it's not localized. */
if (opts.localeObj != NULL) {
Tcl_SetResult(interp,
- "legacy [clock scan] does not support -locale", TCL_STATIC);
+ (char*)"legacy [clock scan] does not support -locale", TCL_STATIC);
Tcl_SetErrorCode(interp, "CLOCK", "flagWithLegacyFormat", NULL);
return TCL_ERROR;
}