HDF: fix build with Apple Clang (#31235)

This commit is contained in:
Adam J. Stewart 2022-06-27 09:37:13 -07:00 committed by GitHub
parent a6b0de3beb
commit 7bce92ad46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,10 @@ def configure_args(self):
'FCFLAGS=-fallow-argument-mismatch']
)
# https://forum.hdfgroup.org/t/help-building-hdf4-with-clang-error-implicit-declaration-of-function-test-mgr-szip-is-invalid-in-c99/7680
if self.spec.satisfies('@:4.2.15 %apple-clang'):
config_args.append('CFLAGS=-Wno-error=implicit-function-declaration')
return config_args
# Otherwise, we randomly get: