From 55458cf659ac81b24a1681592daa9a5c5fea20f8 Mon Sep 17 00:00:00 2001 From: gitlost Date: Mon, 12 Jun 2023 14:11:49 +0100 Subject: [PATCH] CMake: fix clang no-deprecated-declarations --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 968d485c..967c4bb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,7 @@ if(ZINT_SANITIZE) endif() if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress - add_compile_options(-W-no-deprecated-declarations) + add_compile_options(-Wno-deprecated-declarations) endif() endif() endif()