summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Churavy <vchuravy@users.noreply.github.com>2021-02-25 23:55:42 +0100
committerGitHub <noreply@github.com>2021-02-25 22:55:42 +0000
commit476444c59244125aed5b1522fdcb33c2cd2f0f9b (patch)
tree88c81849c047678e2940e009cde2b1f58c179c5d
parent87dd060c200a1cff506cd695cc70ec9a70cb6b4e (diff)
downloadspack-476444c59244125aed5b1522fdcb33c2cd2f0f9b.tar.gz
spack-476444c59244125aed5b1522fdcb33c2cd2f0f9b.tar.bz2
spack-476444c59244125aed5b1522fdcb33c2cd2f0f9b.tar.xz
spack-476444c59244125aed5b1522fdcb33c2cd2f0f9b.zip
[flux-core] add -Wno-errpr=maybe-uninitialized (#21943)
Co-authored-by: Stephen Herbein <SteVwonder@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/flux-core/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flux-core/package.py b/var/spack/repos/builtin/packages/flux-core/package.py
index e0abfb0c6f..05ab82b831 100644
--- a/var/spack/repos/builtin/packages/flux-core/package.py
+++ b/var/spack/repos/builtin/packages/flux-core/package.py
@@ -176,4 +176,10 @@ class FluxCore(AutotoolsPackage):
flags = []
flags.append('-Wno-error=stringop-truncation')
+ if self.spec.satisfies('%gcc@8:') and \
+ self.spec.satisfies('@0.23.0'):
+ if flags is None:
+ flags = []
+ flags.append('-Wno-error=maybe-uninitialized')
+
return (flags, None, None)