mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|  | ||||
| #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) | ||||
| { | ||||
|     MZ_ASSERT(index < pArray->m_size); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user