meson: Don't pass -Werror to vendored code

Do it the correct way with libusrsctp -- override the option so that
it's done in a compiler-agnostic and future-proof way.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2494>
This commit is contained in:
Nirbheek Chauhan 2022-07-30 02:29:49 +05:30 committed by GStreamer Marge Bot
parent 5da9f62313
commit b2d22c0f00
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,6 @@ else
'-Wno-missing-declarations',
'-Wno-old-style-definition',
'-Wno-redundant-decls',
'-Wno-error',
])
endif
@ -169,6 +168,7 @@ usrsctp_static = static_library('usrsctp-static', sources,
c_args: compile_args,
dependencies: dependencies,
include_directories: include_dirs,
override_options: ['werror=false'],
install: false)
# Declare dependency

View file

@ -81,7 +81,8 @@ libmfx_static = static_library('libmfx-static',
c_args : libmfx_extra_args,
cpp_args : libmfx_extra_args,
dependencies : libmfx_extra_deps,
include_directories : libmfx_incl
include_directories : libmfx_incl,
override_options: ['werror=false'],
)
libmfx_internal_dep = declare_dependency(