From 50585d55c5cd04645c301f667684baacb8d3da3b Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:17:07 -0700 Subject: [PATCH] hdf: %oneapi: -Wno-error=implicit-function-declaration (#43631) * hdf: %oneapi: -Wno-error=implicit-function-declaration * [@spackbot] updating style on behalf of eugeneswalker --- var/spack/repos/builtin/packages/hdf/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index d352e2f6b5..f9a97353d8 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -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:"):