From ef8c15c5eff460d9ae3aa783c212722c6fd581e2 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Sat, 29 Oct 2022 05:14:15 -0700 Subject: [PATCH] czmq %oneapi: -Wno-error: gnu-null-pointer-arithmetic, strict-prototypes (#33586) --- var/spack/repos/builtin/packages/czmq/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/czmq/package.py b/var/spack/repos/builtin/packages/czmq/package.py index 60d1cdd71a..a0b3577462 100644 --- a/var/spack/repos/builtin/packages/czmq/package.py +++ b/var/spack/repos/builtin/packages/czmq/package.py @@ -25,6 +25,14 @@ class Czmq(AutotoolsPackage): depends_on("uuid") depends_on("libzmq") + def flag_handler(self, name, flags): + iflags = [] + if name == "cflags": + if self.spec.satisfies("%oneapi@2022.2.0:"): + iflags.append("-Wno-error=gnu-null-pointer-arithmetic") + iflags.append("-Wno-error=strict-prototypes") + return (iflags, None, None) + def autoreconf(self, spec, prefix): autogen = Executable("./autogen.sh") autogen()