fix warnings: unused-parameter

This commit is contained in:
Daniel Mendler 2019-01-29 22:31:37 +01:00
parent 9859befc64
commit 2990ced921
No known key found for this signature in database
GPG Key ID: D88ADB2A2693CA43

View File

@ -280,6 +280,7 @@ struct mz_zip_internal_state_tag
#if defined(DEBUG) || defined(_DEBUG) || defined(NDEBUG)
static MZ_FORCEINLINE mz_uint mz_zip_array_range_check(const mz_zip_array *pArray, mz_uint index)
{
(void)pArray;
MZ_ASSERT(index < pArray->m_size);
return index;
}
@ -3213,6 +3214,8 @@ mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *pZip, const char *pArchive_n
time(&cur_time);
mz_zip_time_t_to_dos_time(cur_time, &dos_time, &dos_date);
}
#else
(void)last_modified;
#endif /* #ifndef MINIZ_NO_TIME */
if (!(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA))
@ -3512,6 +3515,8 @@ mz_bool mz_zip_writer_add_read_buf_callback(mz_zip_archive *pZip, const char *pA
{
mz_zip_time_t_to_dos_time(*pFile_time, &dos_time, &dos_date);
}
#else
(void)pFile_time;
#endif
if (uncomp_size <= 3)