mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
CMake: fix clang no-deprecated-declarations
This commit is contained in:
parent
f448943c0b
commit
55458cf659
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user