diff --git a/cmake/Modules/FindIFEMDeps.cmake b/cmake/Modules/FindIFEMDeps.cmake index 41ea63b4f..a95ed44e9 100644 --- a/cmake/Modules/FindIFEMDeps.cmake +++ b/cmake/Modules/FindIFEMDeps.cmake @@ -276,6 +276,7 @@ endif() include(CheckCXXCompilerFlag) check_cxx_compiler_flag(-Wall HAS_WALL) +check_cxx_compiler_flag(-Wextra HAS_WEXTRA) check_cxx_compiler_flag(-Wno-parentheses HAS_PARENTHESES) if(HAS_WALL) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") @@ -283,6 +284,9 @@ endif() if(HAS_PARENTHESES) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-parentheses") endif() +if(HAS_WEXTRA) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra -Wno-unused-parameter") +endif() set(IFEM_REGTEST_SCRIPT ${IFEM_PATH}/Apps/Common/scripts/regtest.sh.in) set(IFEM_CLANG_CHECK_TEST_SCRIPT ${IFEM_PATH}/Apps/Common/scripts/clang-check-test.sh.in) diff --git a/jenkins/build-ifem-module.sh b/jenkins/build-ifem-module.sh index 1fde0b6aa..9df062a4b 100755 --- a/jenkins/build-ifem-module.sh +++ b/jenkins/build-ifem-module.sh @@ -97,7 +97,7 @@ function build_module { cmake $3 -DCMAKE_BUILD_TYPE=Release $1 test $? -eq 0 || exit 1 # Threaded build - nproc=`nproc` + nproc=1 #`nproc` if test $2 -eq 1 then cmake --build . --target testapps -- -j$nproc