mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 09:57:02 +00:00
CMake: fix clang no-deprecated-declarations
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user