Fixed compiler warnings default tip
authorSam Lantinga <slouken@libsdl.org>
Wed, 09 Oct 2019 19:11:28 -0700
changeset 7231239eed726ae
parent 722 63ec5ac0b0b8
Fixed compiler warnings
miniz.h
     1.1 --- a/miniz.h	Wed Oct 09 18:35:39 2019 -0700
     1.2 +++ b/miniz.h	Wed Oct 09 19:11:28 2019 -0700
     1.3 @@ -849,7 +849,15 @@
     1.4  // tdefl_compress_mem_to_output() compresses a block to an output stream. The above helpers use this function internally.
     1.5  MINIZ_STATIC mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags);
     1.6  
     1.7 -enum { TDEFL_MAX_HUFF_TABLES = 3, TDEFL_MAX_HUFF_SYMBOLS_0 = 288, TDEFL_MAX_HUFF_SYMBOLS_1 = 32, TDEFL_MAX_HUFF_SYMBOLS_2 = 19, TDEFL_LZ_DICT_SIZE = 32768, TDEFL_LZ_DICT_SIZE_MASK = TDEFL_LZ_DICT_SIZE - 1, TDEFL_MIN_MATCH_LEN = 3, TDEFL_MAX_MATCH_LEN = 258 };
     1.8 +//enum { TDEFL_MAX_HUFF_TABLES = 3, TDEFL_MAX_HUFF_SYMBOLS_0 = 288, TDEFL_MAX_HUFF_SYMBOLS_1 = 32, TDEFL_MAX_HUFF_SYMBOLS_2 = 19, TDEFL_LZ_DICT_SIZE = 32768, TDEFL_LZ_DICT_SIZE_MASK = TDEFL_LZ_DICT_SIZE - 1, TDEFL_MIN_MATCH_LEN = 3, TDEFL_MAX_MATCH_LEN = 258 };
     1.9 +#define TDEFL_MAX_HUFF_TABLES	3
    1.10 +#define TDEFL_MAX_HUFF_SYMBOLS_0 288
    1.11 +#define TDEFL_MAX_HUFF_SYMBOLS_1 32
    1.12 +#define TDEFL_MAX_HUFF_SYMBOLS_2 19
    1.13 +#define TDEFL_LZ_DICT_SIZE 32768
    1.14 +#define TDEFL_LZ_DICT_SIZE_MASK	( TDEFL_LZ_DICT_SIZE - 1 )
    1.15 +#define TDEFL_MIN_MATCH_LEN	3
    1.16 +#define TDEFL_MAX_MATCH_LEN 258
    1.17  
    1.18  // TDEFL_OUT_BUF_SIZE MUST be large enough to hold a single entire compressed output block (using static/fixed Huffman codes).
    1.19  #if TDEFL_LESS_MEMORY