From: Matthias Maier Date: Mon, 13 Jun 2022 02:20:19 +0000 (-0500) Subject: CMake: Use -Wno-pass-failed for clang X-Git-Tag: v9.4.0-rc1~31^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13963%2Fhead;p=dealii.git CMake: Use -Wno-pass-failed for clang --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index df9df4f3ec..2a2315bac5 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -152,6 +152,19 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.3") ) ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-function") ENDIF() + + # + # Clang-14.0.5 complaines loudly about not being able to vectorize some + # of our loops that we have annotated with DEAL_II_OPENMP_SIMD: + # + # warning: loop not vectorized: the optimizer was unable to perform + # the requested transformation; the transformation might be disabled + # or specified as part of an unsupported transformation ordering + # [-Wpass-failed=transform-warning] + # + # Let us simply disable the warning for now. + # + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-pass-failed") ENDIF()