From 4a7de41391b3bde1d25bd7c367d5439ae87809eb Mon Sep 17 00:00:00 2001 From: Peter Haag Date: Sat, 17 Feb 2024 14:50:48 +0100 Subject: [PATCH] Fix compiler warnings for lz4 --- src/lib/compress/lz4.c | 2 +- src/lib/compress/lz4hc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/compress/lz4.c b/src/lib/compress/lz4.c index 7d9bd45f..e0bed92e 100644 --- a/src/lib/compress/lz4.c +++ b/src/lib/compress/lz4.c @@ -1581,7 +1581,7 @@ int LZ4_freeStream (LZ4_stream_t* LZ4_stream) typedef enum { _ld_fast, _ld_slow } LoadDict_mode_e; #define HASH_UNIT sizeof(reg_t) -int LZ4_loadDict_internal(LZ4_stream_t* LZ4_dict, +static int LZ4_loadDict_internal(LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize, LoadDict_mode_e _ld) { diff --git a/src/lib/compress/lz4hc.c b/src/lib/compress/lz4hc.c index a5bdbb5e..b9bc409f 100644 --- a/src/lib/compress/lz4hc.c +++ b/src/lib/compress/lz4hc.c @@ -324,7 +324,7 @@ typedef struct { int back; /* negative value */ } LZ4HC_match_t; -LZ4HC_match_t LZ4HC_searchExtDict(const BYTE* ip, U32 ipIndex, +static LZ4HC_match_t LZ4HC_searchExtDict(const BYTE* ip, U32 ipIndex, const BYTE* const iLowLimit, const BYTE* const iHighLimit, const LZ4HC_CCtx_internal* dictCtx, U32 gDictEndIndex, int currentBestML, int nbAttempts)