fixed static analyzer false positive regarding @sequence initialization
make a mock initialization to please the tool
This commit is contained in:
@@ -1429,7 +1429,7 @@ ZSTD_decompressSequences_bodySplitLitBuffer( ZSTD_DCtx* dctx,
|
|||||||
BIT_DStream_completed < BIT_DStream_overflow);
|
BIT_DStream_completed < BIT_DStream_overflow);
|
||||||
|
|
||||||
/* decompress without overrunning litPtr begins */
|
/* decompress without overrunning litPtr begins */
|
||||||
{ seq_t sequence;
|
{ seq_t sequence = {0,0,0}; /* some static analyzer believe that @sequence is not initialized (it necessarily is, since for(;;) loop as at least one interation) */
|
||||||
/* Align the decompression loop to 32 + 16 bytes.
|
/* Align the decompression loop to 32 + 16 bytes.
|
||||||
*
|
*
|
||||||
* zstd compiled with gcc-9 on an Intel i9-9900k shows 10% decompression
|
* zstd compiled with gcc-9 on an Intel i9-9900k shows 10% decompression
|
||||||
|
|||||||
Reference in New Issue
Block a user