diffutils: Changed the handling of undeclared functions from warning … (#14593)

* diffutils: Changed the handling of undeclared functions from warning to error.

* diffutils: Change the handling of warnings or error

* Delete '-Werror=implicit-function-declaration'

* Add '-Qunused-arguments'
This commit is contained in:
t-karatsu 2020-01-29 06:06:37 +09:00 committed by Adam J. Stewart
parent 0605fc1557
commit 492b600d29

View file

@ -19,3 +19,8 @@ class Diffutils(AutotoolsPackage, GNUMirrorPackage):
build_directory = 'spack-build' build_directory = 'spack-build'
depends_on('libiconv') depends_on('libiconv')
def setup_build_environment(self, env):
if self.spec.satisfies('%fj'):
env.append_flags('CFLAGS',
'-Qunused-arguments')