hdf: %oneapi: -Wno-error=implicit-function-declaration (#43631)

* hdf: %oneapi: -Wno-error=implicit-function-declaration

* [@spackbot] updating style on behalf of eugeneswalker
This commit is contained in:
eugeneswalker 2024-04-15 12:17:07 -07:00 committed by GitHub
parent 5d6b5f3f6f
commit 50585d55c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,7 +146,11 @@ def flag_handler(self, name, flags):
if name == "cflags":
# 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") or self.spec.satisfies("%clang@16:"):
if (
self.spec.satisfies("@:4.2.15 %apple-clang")
or self.spec.satisfies("%clang@16:")
or self.spec.satisfies("%oneapi")
):
flags.append("-Wno-error=implicit-function-declaration")
if self.spec.satisfies("%clang@16:"):