rom-properties/extlib
David Korth d1ff987d64 [minizip-ng] Fix some warnings that broke -Werror builds.
Initialize some variables, and use memcpy() instead of strncpy().

Remove the -Wno-error options. This broke on Debian 8 ppc (gcc-4.9.2),
which doesn't support -Wstringop-overflow or -Wstringop-truncation.

extlib/minizip-ng/compat/unzip.c: In function ‘unzGetFilePos’:
extlib/minizip-ng/compat/unzip.c:563:38: error: ‘file_pos64.pos_in_zip_directory’ may be used uninitialized [-Werror=maybe-uninitialized]
  563 |     file_pos->pos_in_zip_directory = (uint32_t)file_pos64.pos_in_zip_directory;
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extlib/minizip-ng/compat/unzip.c:556:20: note: ‘file_pos64.pos_in_zip_directory’ was declared here
  556 |     unz64_file_pos file_pos64;
      |                    ^~~~~~~~~~
extlib/minizip-ng/compat/unzip.c:564:29: error: ‘file_pos64.num_of_file’ may be used uninitialized [-Werror=maybe-uninitialized]
  564 |     file_pos->num_of_file = (uint32_t)file_pos64.num_of_file;
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extlib/minizip-ng/compat/unzip.c:556:20: note: ‘file_pos64.num_of_file’ was declared here
  556 |     unz64_file_pos file_pos64;
      |                    ^~~~~~~~~~
cc1: all warnings being treated as errors

extlib/minizip-ng/mz_zip.c: In function ‘mz_zip_set_comment’:
extlib/minizip-ng/mz_zip.c:1569:5: error: ‘__builtin___strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
 1569 |     strncpy(zip->comment, comment, comment_size);
      |     ^
extlib/minizip-ng/mz_zip.c:1563:29: note: length computed here
 1563 |     comment_size = (int32_t)strlen(comment);
      |                             ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
2025-04-07 20:55:55 -04:00
..
basisu_astc Remove CheckHiddenVisibility.cmake. 2025-01-18 22:34:24 -05:00
fmt [fmt] CMakeLists.txt: The cxx_std_11 check doesn't work on CMake 3.6, either. 2025-04-07 00:59:59 -04:00
gettext.win32 [gettext.win32] Updated to gettext-0.22. 2023-07-28 19:37:18 -04:00
googletest [googletest] Don't use the gcc-4.9 workaround if building with clang. 2025-02-18 18:36:48 -05:00
inih Remove CheckHiddenVisibility.cmake. 2025-01-18 22:34:24 -05:00
libmspack-xenia [libmspack-xenia] lzxd.c: Fix some warnings in the 32-bit (i386) MSVC build. 2025-03-31 21:55:21 -04:00
libpng [libpng] pngrutil.c: Missed a few png_structrp/png_inforp changes. 2025-04-01 19:17:11 -04:00
lz4 Remove CheckHiddenVisibility.cmake. 2025-01-18 22:34:24 -05:00
microtar [microtar] microtar.c: Use snprintf() instead of strncpy() to ensure NULL-termination. 2025-04-07 19:16:28 -04:00
minilzo Remove CheckHiddenVisibility.cmake. 2025-01-18 22:34:24 -05:00
minizip-ng [minizip-ng] Fix some warnings that broke -Werror builds. 2025-04-07 20:55:55 -04:00
PowerVR Remove CheckHiddenVisibility.cmake. 2025-01-18 22:34:24 -05:00
pugixml [extlib] Enable pugixml's built-in DLL postfix option. 2025-04-01 19:19:20 -04:00
rapidjson [rapidjson] Backport a patch to fix compilation with gcc-14. 2023-11-01 00:03:41 -04:00
unice68 [unice68] unice68.c, set_binary_mode(): Suppress unused variable warnings. 2025-04-06 18:56:41 -04:00
uniwidth [cmake] msvc.cmake: Make all warnings act as errors. (/W3 /WX) 2025-03-31 21:34:35 -04:00
zlib-ng [zlib-ng] CMakeLists.txt: Also don't print the list of architecture-specific source files. 2025-03-29 12:16:54 -04:00
zstd [zstd] zstd_compress.c, ZSTD_convertBlockSequences(): Add const to make it match the declaration in zstd_compress_internal.h. 2025-04-01 19:17:11 -04:00
.clang-tidy .clang-tidy: Enable scanning on header files. 2023-06-30 22:56:49 -04:00
CMakeLists.txt [extlib] CMakeLists.txt: Define ZEXPORT=__declspec(dllexport) for MiniZip. 2025-04-07 20:51:48 -04:00