diff options
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index d261b4b92..8e8434360 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -153,17 +153,14 @@ function(td_set_up_compiler) add_cxx_compiler_flag("-Wno-cast-function-type") endif() if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)) - # warns about a lot of "return std::move", which are not redundant for compilers without fix for DR 1579, i.e. GCC 4.9 or clang 3.8 + # warns about a lot of "return std::move", which are not redundant for compilers without proper fix for DR 1579, i.e. GCC 8 # see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1579 + # see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80452 add_cxx_compiler_flag("-Wno-redundant-move") endif() if (GCC) add_cxx_compiler_flag("-Wno-stringop-overflow") # some false positives endif() - if (CLANG AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5)) - # https://stackoverflow.com/questions/26744556/warning-returning-a-captured-reference-from-a-lambda - add_cxx_compiler_flag("-Wno-return-stack-address") - endif() if (GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.0)) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104030 add_cxx_compiler_flag("-Wbidi-chars=none") |
