Skip to content

Commit 46d88cb

Browse files
authored
Merge pull request #45 from sparcians/upstream-master
Fix compilation failures with Clang 19+
2 parents 83bb798 + 0cf78c0 commit 46d88cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/stf-config.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ add_compile_options(-Werror -std=c++17 -fPIC -Wall -Wextra -pedantic -Wconversio
2929

3030
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
3131
add_compile_options(-Wno-gnu-zero-variadic-macro-arguments)
32+
33+
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0)
34+
add_compile_options(-Wno-c++20-extensions)
35+
endif()
3236
endif()
3337

3438
if (CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")

0 commit comments

Comments
 (0)