From 6778f8cfa062c979ab5e2a777d77e80911121f9a Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Tue, 8 Oct 2024 14:08:06 +0300 Subject: [PATCH] Add -Wno-register to CXXFLAGS for OSX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trying to fix: ``` base64.cpp:124:11: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 2024-10-08T08:41:28.5270550Z 08:41:27 BIOCONDA INFO (ERR) int register a; ``` --- recipes/pepnovo/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pepnovo/build.sh b/recipes/pepnovo/build.sh index e7f29ceca0dae..1988d3f7261e9 100644 --- a/recipes/pepnovo/build.sh +++ b/recipes/pepnovo/build.sh @@ -6,7 +6,7 @@ cd src/ # Below we add -Wno-narrowing because of the compilation error: # CumulativeSeqProb.h:10:71: error: narrowing conversion of '999999999' from 'int' to 'float' inside { } [-Wnarrowing] -make -j ${CPU_COUNT} CC="${CXX}" CFLAGS="${CXXFLAGS} -Wno-narrowing " LDFLAGS="${LDFLAGS}" +make -j ${CPU_COUNT} CC="${CXX}" CFLAGS="${CXXFLAGS} -Wno-narrowing -Wno-register " LDFLAGS="${LDFLAGS}" mkdir -p ${PREFIX}/bin cp PepNovo_bin ${PREFIX}/bin/pepnovo