From 0cf78c0570b9e567d4931d5f5927270720d27372 Mon Sep 17 00:00:00 2001 From: Brett Dutro Date: Wed, 2 Oct 2024 10:39:58 -0500 Subject: [PATCH] Fix compilation failures with Clang 19+ --- cmake/stf-config.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/stf-config.cmake b/cmake/stf-config.cmake index 4b8502b..d4a4ea2 100644 --- a/cmake/stf-config.cmake +++ b/cmake/stf-config.cmake @@ -29,6 +29,10 @@ add_compile_options(-Werror -std=c++17 -fPIC -Wall -Wextra -pedantic -Wconversio if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wno-gnu-zero-variadic-macro-arguments) + + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0) + add_compile_options(-Wno-c++20-extensions) + endif() endif() if (CMAKE_BUILD_TYPE MATCHES "^[Rr]elease")