fixed minor declaration warning
parent
e0cb8d19c6
commit
453d487807
|
@ -100,11 +100,11 @@ zstd-nolegacy:
|
||||||
gzstd:
|
gzstd:
|
||||||
$(MAKE) -C $(PRGDIR) zstd HAVE_ZLIB=1 MOREFLAGS+="$(DEBUGFLAGS)"
|
$(MAKE) -C $(PRGDIR) zstd HAVE_ZLIB=1 MOREFLAGS+="$(DEBUGFLAGS)"
|
||||||
|
|
||||||
.PHONY:
|
.PHONY: zstd-dll
|
||||||
zstd-dll :
|
zstd-dll :
|
||||||
$(MAKE) -C $(ZSTDDIR) libzstd
|
$(MAKE) -C $(ZSTDDIR) libzstd
|
||||||
|
|
||||||
.PHONY:
|
.PHONY: zstd-staticLib
|
||||||
zstd-staticLib :
|
zstd-staticLib :
|
||||||
$(MAKE) -C $(ZSTDDIR) libzstd.a
|
$(MAKE) -C $(ZSTDDIR) libzstd.a
|
||||||
|
|
||||||
|
|
|
@ -92,14 +92,12 @@ int testStreamingAPI(void)
|
||||||
while (1) {
|
while (1) {
|
||||||
ZSTD_outBuffer output = {outBuff, outBuffSize, 0};
|
ZSTD_outBuffer output = {outBuff, outBuffSize, 0};
|
||||||
if (needsInit) {
|
if (needsInit) {
|
||||||
DISPLAY("needsInit: ZSTD_initDStream(stream)\n");
|
|
||||||
size_t const ret = ZSTD_initDStream(stream);
|
size_t const ret = ZSTD_initDStream(stream);
|
||||||
if (ZSTD_isError(ret)) {
|
if (ZSTD_isError(ret)) {
|
||||||
DISPLAY("ERROR: ZSTD_initDStream: %s\n", ZSTD_getErrorName(ret));
|
DISPLAY("ERROR: ZSTD_initDStream: %s\n", ZSTD_getErrorName(ret));
|
||||||
return 1;
|
return 1;
|
||||||
} }
|
} }
|
||||||
|
|
||||||
DISPLAY("ZSTD_decompressStream(stream, output, input)\n");
|
|
||||||
{ size_t const ret = ZSTD_decompressStream(stream, &output, &input);
|
{ size_t const ret = ZSTD_decompressStream(stream, &output, &input);
|
||||||
if (ZSTD_isError(ret)) {
|
if (ZSTD_isError(ret)) {
|
||||||
DISPLAY("ERROR: ZSTD_decompressStream: %s\n", ZSTD_getErrorName(ret));
|
DISPLAY("ERROR: ZSTD_decompressStream: %s\n", ZSTD_getErrorName(ret));
|
||||||
|
|
Loading…
Reference in New Issue