Failed to build using mingw 11 x64 (duplicate)
EndrII opened this issue · 3 comments
EndrII commented
Hi. Nice library, but I haw some issues with build on mingw 11 compilers ...
C:\Workers\windows10\cmake\WindowsCMakeBuilder\QuasarApp\CQtDeployer\submodules\zip\src\zip.c: In function 'zip_archive_extract':
C:\Workers\windows10\cmake\WindowsCMakeBuilder\QuasarApp\CQtDeployer\submodules\zip\src\zip.c:360:5: error: 'strncpy' output may be truncated copying between 0 and 260 bytes from a string of length 511 [-Werror=stringop-truncation]
360 | strncpy(&path[dirlen], info.m_filename, filename_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
kuba-- commented
Look at https://github.com/kuba--/zip/issues/272
most likely the same thingy
kuba-- commented
PTAL if this quick workaround works for you:
https://github.com/kuba--/zip/pull/282