mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs: Silence clang warnings for empty prototypes without void
clang expects an empty prototype to explicitly use `void`. Also silences the warning in `libobs-opengl`, `obsglad`, `caption`, `mac-syphon` and `obs-x264-test`.
This commit is contained in:
@@ -6,3 +6,7 @@ target_link_libraries(obs-x264-test PRIVATE OBS::opts-parser)
|
||||
add_test(NAME obs-x264-test COMMAND obs-x264-test)
|
||||
|
||||
set_target_properties(obs-x264-test PROPERTIES FOLDER plugins/obs-x264)
|
||||
|
||||
if(OS_MACOS)
|
||||
target_compile_options(obs-x264-test PRIVATE -Wno-strict-prototypes)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user