fixed minor gcc warning
This commit is contained in:
+1
-1
@@ -247,6 +247,7 @@ static size_t ZSTD_HC_compressBlock(ZSTD_HC_CCtx* ctx, void* dst, size_t maxDstS
|
|||||||
const BYTE* anchor = istart;
|
const BYTE* anchor = istart;
|
||||||
const BYTE* const iend = istart + srcSize;
|
const BYTE* const iend = istart + srcSize;
|
||||||
const BYTE* const ilimit = iend - 8;
|
const BYTE* const ilimit = iend - 8;
|
||||||
|
const BYTE* match = istart;
|
||||||
|
|
||||||
size_t offset_2=REPCODE_STARTVALUE, offset_1=REPCODE_STARTVALUE;
|
size_t offset_2=REPCODE_STARTVALUE, offset_1=REPCODE_STARTVALUE;
|
||||||
const U32 maxSearches = 1 << ctx->params.searchLog;
|
const U32 maxSearches = 1 << ctx->params.searchLog;
|
||||||
@@ -288,7 +289,6 @@ static size_t ZSTD_HC_compressBlock(ZSTD_HC_CCtx* ctx, void* dst, size_t maxDstS
|
|||||||
|
|
||||||
/* search */
|
/* search */
|
||||||
{
|
{
|
||||||
const BYTE* match;
|
|
||||||
size_t matchLength = ZSTD_HC_insertAndFindBestMatch(ctx, ip, iend, &match, maxSearches);
|
size_t matchLength = ZSTD_HC_insertAndFindBestMatch(ctx, ip, iend, &match, maxSearches);
|
||||||
if (!matchLength) { ip++; continue; }
|
if (!matchLength) { ip++; continue; }
|
||||||
/* store sequence */
|
/* store sequence */
|
||||||
|
|||||||
@@ -169,6 +169,8 @@ valgrindTest: zstd datagen fuzzer fullbench
|
|||||||
valgrind --leak-check=yes --error-exitcode=1 ./datagen -g50M > $(VOID)
|
valgrind --leak-check=yes --error-exitcode=1 ./datagen -g50M > $(VOID)
|
||||||
./datagen -g16KB > tmp
|
./datagen -g16KB > tmp
|
||||||
valgrind --leak-check=yes --error-exitcode=1 ./zstd -vf tmp $(VOID)
|
valgrind --leak-check=yes --error-exitcode=1 ./zstd -vf tmp $(VOID)
|
||||||
|
./datagen -g2930KB > tmp
|
||||||
|
valgrind --leak-check=yes --error-exitcode=1 ./zstd -4 -vf tmp $(VOID)
|
||||||
./datagen -g64MB > tmp
|
./datagen -g64MB > tmp
|
||||||
valgrind --leak-check=yes --error-exitcode=1 ./zstd -vf tmp $(VOID)
|
valgrind --leak-check=yes --error-exitcode=1 ./zstd -vf tmp $(VOID)
|
||||||
@rm tmp
|
@rm tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user