Enable MSVC deprecation warning

This commit is contained in:
Chris Thrasher 2022-12-10 21:00:31 -07:00
parent 7faa5507a4
commit e54bf87e9b

View File

@ -38,7 +38,6 @@ function(set_target_warnings target)
/permissive- # standards conformance mode
# Disables, remove when appropriate
/wd4996 # disable warnings about deprecated functions
/wd4068 # disable warnings about unknown pragmas (e.g. #pragma GCC)
/wd4505 # disable warnings about unused functions that might be platform-specific
/wd4800 # disable warnings regarding implicit conversions to bool
@ -85,4 +84,10 @@ function(set_target_warnings target)
-Wno-unknown-warning-option # do not warn on GCC-specific warning diagnostic pragmas
)
endif()
# Disable certain deprecation warnings
if(SFML_OS_WINDOWS)
target_compile_definitions(${target} PRIVATE -D_CRT_SECURE_NO_WARNINGS)
target_compile_definitions(${target} PRIVATE -D_WINSOCK_DEPRECATED_NO_WARNINGS)
endif()
endfunction()