Fix unused parameter ‘pArray’ in mz_zip_array_range_check
When NDEBUG, the assert in mz_zip_array_range_check does nothing and an unused variable warning is generated at 4159f8c8c3/miniz_zip.c (L280)
This commit removes the `|| define (NDEBUG)` so when debugging is turned off, no range check is performed.
This commit is contained in:
parent
4159f8c8c3
commit
fa09b1f3d4
@ -277,7 +277,7 @@ struct mz_zip_internal_state_tag
|
|||||||
|
|
||||||
#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size
|
#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size
|
||||||
|
|
||||||
#if defined(DEBUG) || defined(_DEBUG) || defined(NDEBUG)
|
#if defined(DEBUG) || defined(_DEBUG)
|
||||||
static MZ_FORCEINLINE mz_uint mz_zip_array_range_check(const mz_zip_array *pArray, mz_uint index)
|
static MZ_FORCEINLINE mz_uint mz_zip_array_range_check(const mz_zip_array *pArray, mz_uint index)
|
||||||
{
|
{
|
||||||
MZ_ASSERT(index < pArray->m_size);
|
MZ_ASSERT(index < pArray->m_size);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user