From 622aea128aca3191c8be0fb8f8fd01513aff6ec0 Mon Sep 17 00:00:00 2001 From: Deomid rojer Ryabkov Date: Sat, 23 Mar 2024 19:55:43 +0000 Subject: [PATCH] Fix unused arg warnings when building with MINIZ_NO_TIME --- miniz_zip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniz_zip.c b/miniz_zip.c index 46c70cf..2b6e966 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -3274,6 +3274,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)) @@ -3575,6 +3577,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 (max_size <= 3)