summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-10-29 13:19:27 -0700
committerGitHub <noreply@github.com>2022-10-29 13:19:27 -0700
commite5274de7eccc54fa94a197c9d3f5b6b9ce16820a (patch)
tree23c6529575151b47fdec44d579f112c183582bf8 /var
parent23aada1d24d0b4ab0c35fe786d90205afba187d0 (diff)
downloadspack-e5274de7eccc54fa94a197c9d3f5b6b9ce16820a.tar.gz
spack-e5274de7eccc54fa94a197c9d3f5b6b9ce16820a.tar.bz2
spack-e5274de7eccc54fa94a197c9d3f5b6b9ce16820a.tar.xz
spack-e5274de7eccc54fa94a197c9d3f5b6b9ce16820a.zip
unifyfs %oneapi: -Wno-error=deprecated-non-prototype,unused-function (#33602)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/unifyfs/package.py3
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)