diff options
| author | levlam <levlam@telegram.org> | 2025-12-08 13:42:57 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-12-08 13:42:57 +0300 |
| commit | 70ca4bb58b63a87f9b0ddcecb49e6c7128188bb4 (patch) | |
| tree | 21e7114aad47b57c23a3ce561a87bd1dd866525a /CMake/TdSetUpCompiler.cmake | |
| parent | 87f0f7ad885b07b8d5a04b1d03ccf2124230e008 (diff) | |
Remove now unneeded option for old compilers.
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") |
