Fix static analyzer warnings
This commit is contained in:
parent
43aad811db
commit
5ec7897a26
@ -3646,6 +3646,7 @@ static size_t ZSTD_compressBlock_splitBlock_internal(ZSTD_CCtx* zc, void* dst, s
|
|||||||
repcodes_t cRep;
|
repcodes_t cRep;
|
||||||
ZSTD_memcpy(dRep.rep, zc->blockState.prevCBlock->rep, sizeof(repcodes_t));
|
ZSTD_memcpy(dRep.rep, zc->blockState.prevCBlock->rep, sizeof(repcodes_t));
|
||||||
ZSTD_memcpy(cRep.rep, zc->blockState.prevCBlock->rep, sizeof(repcodes_t));
|
ZSTD_memcpy(cRep.rep, zc->blockState.prevCBlock->rep, sizeof(repcodes_t));
|
||||||
|
ZSTD_memset(&nextSeqStore, 0, sizeof(seqStore_t));
|
||||||
|
|
||||||
DEBUGLOG(4, "ZSTD_compressBlock_splitBlock_internal (dstCapacity=%u, dictLimit=%u, nextToUpdate=%u)",
|
DEBUGLOG(4, "ZSTD_compressBlock_splitBlock_internal (dstCapacity=%u, dictLimit=%u, nextToUpdate=%u)",
|
||||||
(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit,
|
(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit,
|
||||||
|
@ -1176,9 +1176,10 @@ size_t ZSTD_RowFindBestMatch_generic (
|
|||||||
|
|
||||||
/* DMS/DDS variables that may be referenced laster */
|
/* DMS/DDS variables that may be referenced laster */
|
||||||
const ZSTD_matchState_t* const dms = ms->dictMatchState;
|
const ZSTD_matchState_t* const dms = ms->dictMatchState;
|
||||||
size_t ddsIdx;
|
/* Initialize the following variables to satisfy static analyzer */
|
||||||
U32 ddsExtraAttempts; /* cctx hash tables are limited in searches, but allow extra searches into DDS */
|
size_t ddsIdx = 0;
|
||||||
U32 dmsTag;
|
U32 ddsExtraAttempts = 0; /* cctx hash tables are limited in searches, but allow extra searches into DDS */
|
||||||
|
U32 dmsTag = 0;
|
||||||
U32* dmsRow = NULL;
|
U32* dmsRow = NULL;
|
||||||
BYTE* dmsTagRow = NULL;
|
BYTE* dmsTagRow = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user