mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
meson: Ensure FFmpeg deprecated APIs are rejected
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5186>
This commit is contained in:
parent
b46559102b
commit
396c5aef7c
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,10 @@ if cc.get_id() == 'msvc'
|
||||||
'/we4053', # one void operand for '?:'
|
'/we4053', # one void operand for '?:'
|
||||||
'/we4062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled
|
'/we4062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled
|
||||||
'/we4098', # 'function' : void function returning a value
|
'/we4098', # 'function' : void function returning a value
|
||||||
|
'/we4101', # 'identifier' : unreferenced local variable
|
||||||
|
'/we4189', # 'identifier' : local variable is initialized but not referenced
|
||||||
|
'/we4996', # 'identifier': was declared deprecated
|
||||||
|
'-D_CRT_SECURE_NO_WARNINGS', # error C4996: 'identifier': This function or variable may be unsafe. Consider using identifier_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
|
||||||
])
|
])
|
||||||
endif
|
endif
|
||||||
add_project_arguments(msvc_args, language: ['c', 'cpp'])
|
add_project_arguments(msvc_args, language: ['c', 'cpp'])
|
||||||
|
@ -208,6 +212,7 @@ warning_flags = [
|
||||||
'-Waggregate-return',
|
'-Waggregate-return',
|
||||||
'-Wvla',
|
'-Wvla',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
|
'-Werror=deprecated-declarations' # to fail on FFmpeg deprecated usage
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach extra_arg : warning_flags
|
foreach extra_arg : warning_flags
|
||||||
|
|
Loading…
Reference in a new issue