mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
plugins: Suppress warnings about implicit integer downcasts
Returned values are usually 64-bit in length but commonly stored in 16-bit integers anyway.
This commit is contained in:
@@ -58,7 +58,7 @@ elseif(OS_MACOS)
|
||||
find_library(APPKIT AppKit)
|
||||
|
||||
target_link_libraries(aja PRIVATE ${IOKIT} ${COREFOUNDATION} ${APPKIT})
|
||||
target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations)
|
||||
target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations -Wno-shorten-64-to-32)
|
||||
elseif(OS_LINUX OR OS_FREEBSD)
|
||||
target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations)
|
||||
endif()
|
||||
|
||||
@@ -62,6 +62,7 @@ elseif(OS_MACOS)
|
||||
mark_as_advanced(COREFOUNDATION)
|
||||
|
||||
target_sources(decklink PRIVATE mac/platform.cpp)
|
||||
target_compile_options(decklink PRIVATE -Wno-shorten-64-to-32)
|
||||
target_link_libraries(decklink PRIVATE ${COREFOUNDATION})
|
||||
|
||||
target_sources(
|
||||
|
||||
@@ -45,6 +45,7 @@ target_sources(
|
||||
obs-ffmpeg-video-encoders.c
|
||||
obs-ffmpeg.c)
|
||||
|
||||
target_compile_options(obs-ffmpeg PRIVATE $<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang>:-Wno-shorten-64-to-32>)
|
||||
target_compile_definitions(obs-ffmpeg PRIVATE $<$<BOOL:${ENABLE_FFMPEG_LOGGING}>:ENABLE_FFMPEG_LOGGING>)
|
||||
|
||||
target_link_libraries(
|
||||
|
||||
@@ -31,6 +31,7 @@ add_library(vlc-video MODULE)
|
||||
add_library(OBS::vlc-video ALIAS vlc-video)
|
||||
|
||||
target_sources(vlc-video PRIVATE vlc-video-plugin.c vlc-video-plugin.h vlc-video-source.c)
|
||||
target_compile_options(vlc-video PRIVATE $<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang>:-Wno-shorten-64-to-32>)
|
||||
target_link_libraries(vlc-video PRIVATE OBS::libobs)
|
||||
|
||||
check_vlc_path()
|
||||
|
||||
Reference in New Issue
Block a user