Skip to content

Commit 45d7c71

Browse files
committed
Silence wrong GCC 12 warning.
1 parent 989b504 commit 45d7c71

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎CMake/TdSetUpCompiler.cmake‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ function(td_set_up_compiler)
158158
# https://stackoverflow.com/questions/26744556/warning-returning-a-captured-reference-from-a-lambda
159159
add_cxx_compiler_flag("-Wno-return-stack-address")
160160
endif()
161+
if (GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.0))
162+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104030
163+
add_cxx_compiler_flag("-Wbidi-chars=none")
164+
endif()
161165

162166
if (MINGW)
163167
add_cxx_compiler_flag("-ftrack-macro-expansion=0")

0 commit comments

Comments
 (0)