From 816679011308a3fa58295f5370b1bad1483ca27e Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sat, 1 Jun 2024 21:23:54 +0300 Subject: [PATCH] Fix compilation errors with miniz --- Source/ThirdParty/tinyexr/miniz.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ThirdParty/tinyexr/miniz.cpp b/Source/ThirdParty/tinyexr/miniz.cpp index 6e7e2184c..c9c059d9a 100644 --- a/Source/ThirdParty/tinyexr/miniz.cpp +++ b/Source/ThirdParty/tinyexr/miniz.cpp @@ -1251,7 +1251,7 @@ static mz_bool tdefl_compress_block(tdefl_compressor *d, mz_bool static_block) return tdefl_compress_lz_codes(d); } -static const mz_uint s_tdefl_num_probes[11]; +static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 }; static int tdefl_flush_block(tdefl_compressor *d, int flush) { @@ -2110,7 +2110,7 @@ size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void return out_buf.m_size; } -static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 }; +//static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 }; /* level may actually range from [0,10] (10 is a "hidden" max level, where we want a bit more compression and it's fine if throughput to fall off a cliff on some files). */ mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy)