From 5b4040ea3638eee23298dabd1b821cc0451f8280 Mon Sep 17 00:00:00 2001 From: noguchi-k <55966120+noguchi-k@users.noreply.github.com> Date: Tue, 1 Oct 2019 22:54:01 +0900 Subject: [PATCH] libcerf:add CFLAGS for fujitsu compiler (#12990) * libcerf:add CFLAGS for fujitsu compiler * fix for flake8 --- var/spack/repos/builtin/packages/libcerf/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/libcerf/package.py b/var/spack/repos/builtin/packages/libcerf/package.py index 8a203f5ddd..1451bbe52b 100644 --- a/var/spack/repos/builtin/packages/libcerf/package.py +++ b/var/spack/repos/builtin/packages/libcerf/package.py @@ -25,5 +25,8 @@ def configure_args(self): # http://clang.debian.net/status.php?version=3.8.1&key=UNUSED_FUNCTION if spec.satisfies('%clang'): options.append('CFLAGS=-Wno-unused-function') + # fujitsu compiler has a error about unused functions too. + if spec.satisfies('%fj'): + options.append('CFLAGS=-Wno-unused-function') return options