Skip to content

Commit

Permalink
libzip: backport warning suppression for gcc >= 14 (conan-io#26132)
Browse files Browse the repository at this point in the history
* Fix compilation in GCC >= 14

* Restrict to newer gccs
  • Loading branch information
AbrilRBS authored Dec 9, 2024
1 parent 2a3cb93 commit 57aeaec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/libzip/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ def generate(self):
tc.variables["BUILD_DOC"] = False
tc.variables["ENABLE_LZMA"] = self.options.with_lzma
tc.variables["ENABLE_BZIP2"] = self.options.with_bzip2
if (self.settings.compiler == "gcc"
and Version(self.settings.compiler.version) >= "14"
and Version(self.version) < "1.11"):
# See https://github.com/conan-io/conan-center-index/issues/26034
# It's an error in gcc >= 14
# Upstream fixed this silencing this error implicitly from 1.11
tc.extra_cflags.append("-Wno-incompatible-pointer-types")
if self._has_zstd_support:
tc.variables["ENABLE_ZSTD"] = self.options.with_zstd
tc.variables["ENABLE_COMMONCRYPTO"] = False # TODO: We need CommonCrypto package
Expand Down

0 comments on commit 57aeaec

Please sign in to comment.