CMake: fix clang no-deprecated-declarations

This commit is contained in:
gitlost 2023-06-12 14:11:49 +01:00
parent f448943c0b
commit 55458cf659

View File

@ -94,7 +94,7 @@ if(ZINT_SANITIZE)
endif() endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Recent clangs added deprecation warnings for `sprintf()` that are only triggered on sanitize - suppress # 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() endif()
endif() endif()