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
60 stars 50 forks source link

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

Closed barracuda156 closed 1 year 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 1 year ago

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

gdraheim commented 1 year ago

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