gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
64 stars 53 forks source link

libzzip: do not use -Warray-bounds with gcc-4.2 #139

Closed barracuda156 closed 2 years ago

barracuda156 commented 2 years ago

gcc-4.2 does not accept -Warray-bounds flag, and the build fails. Once the flag is excluded, libzzip builds fine. PR adds a relevant condition to CMakeLists.

barracuda156 commented 2 years ago

@gdraheim Changed the patch in a way that Cmake will test if the flag is supported.

gdraheim commented 2 years ago

Oh, I did not know CheckCompilerFlag, I will probably use it for the other options as well. Thanks a lot.