From 45d7c7140610a9812b8015d98bc6065779fed2b8 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 10 Jul 2024 10:51:46 +0300 Subject: [PATCH] Silence wrong GCC 12 warning. --- CMake/TdSetUpCompiler.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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")