Skip to content

Commit 0c9e29a

Browse files
committed
Treat SFINAE errors as warnings with newer compilers
1 parent 8a48b34 commit 0c9e29a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ add_gcc_compiler_flags("-Wall -Wextra -Wundef -Wpointer-arith -Wno-long-long")
251251
add_gcc_compiler_flags("-Wformat=2 -Wmissing-format-attribute")
252252
add_gcc_compiler_flags("-fvisibility=hidden")
253253
add_gcc_compiler_cxxflags("-fvisibility-inlines-hidden")
254+
# Qt6 marks these as errors with newer compilers. Treat them as warnings for now.
255+
check_add_gcc_compiler_cxxflag("-Wno-error=sfinae-incomplete" SFINAE_INCOMPLETE_FLAG)
254256

255257
if(CMAKE_BUILD_TYPE_LOWER STREQUAL "debug")
256258
check_add_gcc_compiler_flag("-Wshadow-compatible-local")

0 commit comments

Comments
 (0)