base: Suppress deps warnings

/wd4267 is required by websocketpp
-Wno-error=format-overflow is required by asio

-Wno-error=null-pointer-subtraction is required by json on macOS

-Wno-error=deprecated-declarations is required on macOS because Xcode 14
deprecates sprintf()
This commit is contained in:
tytan652 2022-07-26 21:53:04 +02:00 committed by tt2468
parent 420e600864
commit 0db223b148

View File

@ -144,6 +144,7 @@ endif()
# Random other things
if(WIN32)
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
target_compile_options(obs-websocket PRIVATE /wd4267)
# Set the correct Windows preprocessor var for asio
macro(get_WIN32_WINNT version)
@ -161,7 +162,10 @@ if(WIN32)
elseif(UNIX AND NOT APPLE)
target_compile_options(
obs-websocket PRIVATE -Wall -Wextra -Wno-missing-field-initializers
-Wno-variadic-macros)
-Wno-variadic-macros -Wno-error=format-overflow)
elseif(APPLE)
target_compile_options(
obs-websocket PRIVATE -Wno-error=null-pointer-subtraction -Wno-error=deprecated-declarations)
endif()
# Final CMake helpers