diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/unifyfs/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/unifyfs/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/unifyfs/package.py b/var/spack/repos/builtin/packages/unifyfs/package.py index 3d58448a5e..fae9eba74c 100644 --- a/var/spack/repos/builtin/packages/unifyfs/package.py +++ b/var/spack/repos/builtin/packages/unifyfs/package.py @@ -98,6 +98,9 @@ class Unifyfs(AutotoolsPackage): if "-g" in flags: self.debug_build = True if name == "cflags": + if self.spec.satisfies("%oneapi@2022.2.0:"): + flags.append("-Wno-error=deprecated-non-prototype") + flags.append("-Wno-error=unused-function") if self.spec.satisfies("%gcc@4"): flags.append("-std=gnu99") return (None, None, flags) |