Add warning Wdeprecated to clang when FMT_PEDANTIC is on

This commit is contained in:
Deniz Evrenci 2019-10-07 18:35:35 +09:00
parent 2723f264b5
commit 923e7987de

View File

@ -98,7 +98,7 @@ endif ()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(PEDANTIC_COMPILE_FLAGS -Wall -Wextra -pedantic -Wconversion
-Wno-sign-conversion -Wweak-vtables)
-Wno-sign-conversion -Wdeprecated -Wweak-vtables)
check_cxx_compiler_flag(-Wzero-as-null-pointer-constant HAS_NULLPTR_WARNING)
if (HAS_NULLPTR_WARNING)
set(PEDANTIC_COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS}