[flux-core] add -Wno-errpr=maybe-uninitialized (#21943)

Co-authored-by: Stephen Herbein <SteVwonder@users.noreply.github.com>
This commit is contained in:
Valentin Churavy 2021-02-25 23:55:42 +01:00 committed by GitHub
parent 87dd060c20
commit 476444c592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,4 +176,10 @@ def flag_handler(self, name, flags):
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)