From 492b600d29b12edc0ad654414887484e51492cf4 Mon Sep 17 00:00:00 2001 From: t-karatsu <49965247+t-karatsu@users.noreply.github.com> Date: Wed, 29 Jan 2020 06:06:37 +0900 Subject: [PATCH] =?UTF-8?q?diffutils:=20Changed=20the=20handling=20of=20un?= =?UTF-8?q?declared=20functions=20from=20warning=20=E2=80=A6=20(#14593)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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' --- var/spack/repos/builtin/packages/diffutils/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/diffutils/package.py b/var/spack/repos/builtin/packages/diffutils/package.py index b87c9174d9..c8f2dca83f 100644 --- a/var/spack/repos/builtin/packages/diffutils/package.py +++ b/var/spack/repos/builtin/packages/diffutils/package.py @@ -19,3 +19,8 @@ class Diffutils(AutotoolsPackage, GNUMirrorPackage): build_directory = 'spack-build' depends_on('libiconv') + + def setup_build_environment(self, env): + if self.spec.satisfies('%fj'): + env.append_flags('CFLAGS', + '-Qunused-arguments')