Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: zstd: Fix a warning in
zstd_reset_dstream()
- ZSTD_resetDstream() is deprecated hence it is wise to make zstd_reset_dstream() functionally identical to ZSTD_resetDstream() as we have done for the compression stream in [1]. - Also make ZSTD_startingInputLength() visible for the decompression driver to be able to use it. - This fixes the below warning: ../lib/zstd/zstd_decompress_module.c: In function 'zstd_reset_dstream': ../lib/zstd/zstd_decompress_module.c:80:9: warning: 'ZSTD_resetDStream' is deprecated [-Wdeprecated-declarations] 80 | return ZSTD_resetDStream(dstream); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_decompress_module.c:15: ../include/linux/zstd_lib.h:2569:27: note: declared here 2569 | ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); | ^~~~~~~~~~~~~~~~~ [1]: facebook/zstd#3088 Signed-off-by: Cyber Knight <[email protected]>
- Loading branch information