From f72c6ac9bf517908711023de74d9975e44537f22 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 1 Feb 2024 19:50:19 +0000 Subject: [PATCH] CMake: Clang v16 warnings --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 152d8ec1f..26cb0b6c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,8 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16) ecbuild_add_cxx_flags("-Wno-write-strings") ecbuild_add_cxx_flags("-Wno-deprecated") + else() + ecbuild_add_cxx_flags("-Wno-writable-strings") endif() elseif( CMAKE_CXX_COMPILER_ID STREQUAL "Cray" ) set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")