Merge pull request #2846 from senhuang42/fix_appveyor
Use unused functions to appease Visual Studio
This commit is contained in:
commit
379c62a7d4
@ -471,8 +471,7 @@ static void HUF_swapNodes(nodeElt* a, nodeElt* b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Returns 0 if the huffNode array is not sorted by descending count */
|
/* Returns 0 if the huffNode array is not sorted by descending count */
|
||||||
UNUSED_ATTR
|
MEM_STATIC int HUF_isSorted(nodeElt huffNode[], U32 const maxSymbolValue1) {
|
||||||
static int HUF_isSorted(nodeElt huffNode[], U32 const maxSymbolValue1) {
|
|
||||||
U32 i;
|
U32 i;
|
||||||
for (i = 1; i < maxSymbolValue1; ++i) {
|
for (i = 1; i < maxSymbolValue1; ++i) {
|
||||||
if (huffNode[i].count > huffNode[i-1].count) {
|
if (huffNode[i].count > huffNode[i-1].count) {
|
||||||
|
@ -3737,16 +3737,6 @@ static size_t ZSTD_compressBlock_splitBlock(ZSTD_CCtx* zc,
|
|||||||
return cSize;
|
return cSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ZSTD_convertBlockSequencesToSeqStore()
|
|
||||||
* Converts an array of ZSTD_Sequence* with the corresponding original src buffer into
|
|
||||||
* the seqStore of a cctx.
|
|
||||||
*
|
|
||||||
* Returns 0 on success, ZSTD_error on failure.
|
|
||||||
*/
|
|
||||||
static UNUSED_ATTR size_t ZSTD_convertBlockSequencesToSeqStore(ZSTD_CCtx* cctx,
|
|
||||||
const ZSTD_Sequence* inSeqs, size_t inSeqsSize,
|
|
||||||
const void* src, size_t srcSize);
|
|
||||||
|
|
||||||
static size_t ZSTD_compressBlock_internal(ZSTD_CCtx* zc,
|
static size_t ZSTD_compressBlock_internal(ZSTD_CCtx* zc,
|
||||||
void* dst, size_t dstCapacity,
|
void* dst, size_t dstCapacity,
|
||||||
const void* src, size_t srcSize, U32 frame)
|
const void* src, size_t srcSize, U32 frame)
|
||||||
@ -5836,13 +5826,6 @@ static size_t ZSTD_copySequencesToSeqStoreExplicitBlockDelim(ZSTD_CCtx* cctx, ZS
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t ZSTD_convertBlockSequencesToSeqStore(ZSTD_CCtx* cctx,
|
|
||||||
const ZSTD_Sequence* inSeqs, size_t inSeqsSize,
|
|
||||||
const void* src, size_t srcSize) {
|
|
||||||
ZSTD_sequencePosition dummySeqPos = {0, 0, 0};
|
|
||||||
return ZSTD_copySequencesToSeqStoreExplicitBlockDelim(cctx, &dummySeqPos, inSeqs, inSeqsSize, src, srcSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Returns the number of bytes to move the current read position back by. Only non-zero
|
/* Returns the number of bytes to move the current read position back by. Only non-zero
|
||||||
* if we ended up splitting a sequence. Otherwise, it may return a ZSTD error if something
|
* if we ended up splitting a sequence. Otherwise, it may return a ZSTD error if something
|
||||||
* went wrong.
|
* went wrong.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user