diff options
| author | levlam <levlam@telegram.org> | 2024-07-10 10:51:46 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-07-10 10:51:46 +0300 |
| commit | 45d7c7140610a9812b8015d98bc6065779fed2b8 (patch) | |
| tree | 77e6aa174faac547044488921c62b8d9c18b0a31 /CMake/TdSetUpCompiler.cmake | |
| parent | 989b504a7f4988d14121420f4dae615f5e27e751 (diff) | |
Silence wrong GCC 12 warning.
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index ff5991cfb..e469aa6b5 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -158,6 +158,10 @@ function(td_set_up_compiler) # 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") + endif() if (MINGW) add_cxx_compiler_flag("-ftrack-macro-expansion=0") |
