diff options
author | sebres <sebres@users.sourceforge.net> | 2017-05-16 08:51:51 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2017-05-16 08:51:51 (GMT) |
commit | 6c6c26cc2c64879e95a6909e50120af806292a81 (patch) | |
tree | bb09c732fba8acd39c2caf42875a0303bff7fa7f | |
parent | 9f5e6e9b5ff1c04538705d20e601b16c4df821e5 (diff) | |
download | tcl-6c6c26cc2c64879e95a6909e50120af806292a81.zip tcl-6c6c26cc2c64879e95a6909e50120af806292a81.tar.gz tcl-6c6c26cc2c64879e95a6909e50120af806292a81.tar.bz2 |
resolved warnings compiled with gcc, removed unused "MsgCtLitIdxs" (was moved to tclClock.c)
-rw-r--r-- | generic/tclClockFmt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tclClockFmt.c b/generic/tclClockFmt.c index d3cb339..d923ede 100644 --- a/generic/tclClockFmt.c +++ b/generic/tclClockFmt.c @@ -34,9 +34,6 @@ static void ClockFmtScnStorageDelete(ClockFmtScnStorage *fss); static void ClockFrmScnFinalize(ClientData clientData); -/* Msgcat index literals prefixed with _IDX_, used for quick dictionary search */ -CLOCK_LOCALE_LITERAL_ARRAY(MsgCtLitIdxs, "_IDX_"); - /* * Clock scan and format facilities. */ @@ -1906,7 +1903,7 @@ EstimateTokenCount( #define AllocTokenInChain(tok, chain, tokCnt) \ if (++(tok) >= (chain) + (tokCnt)) { \ - *((char **)&chain) = ckrealloc((char *)(chain), \ + chain = ckrealloc((char *)(chain), \ (tokCnt + CLOCK_MIN_TOK_CHAIN_BLOCK_SIZE) * sizeof(*(tok))); \ if ((chain) == NULL) { goto done; }; \ (tok) = (chain) + (tokCnt); \ |