meson: bump warning level to 2

Ignore a few noisy warnings for now.
This commit is contained in:
nanahi 2024-03-08 01:50:25 -05:00 committed by Kacper Michajłow
parent cbe30f614d
commit b2c1e55e5d
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ project('mpv',
'buildtype=debugoptimized', 'buildtype=debugoptimized',
'b_lundef=false', 'b_lundef=false',
'c_std=c11', 'c_std=c11',
'warning_level=1', 'warning_level=2',
] ]
) )
@ -267,6 +267,10 @@ flags = ['-D_FILE_OFFSET_BITS=64']
link_flags = [] link_flags = []
test_flags = ['-Werror=implicit-function-declaration', test_flags = ['-Werror=implicit-function-declaration',
'-Wno-missing-field-initializers',
'-Wno-sign-compare',
'-Wno-unused-parameter',
'-Wno-cast-function-type',
'-Wempty-body', '-Wempty-body',
'-Wdisabled-optimization', '-Wdisabled-optimization',
'-Wstrict-prototypes', '-Wstrict-prototypes',
@ -382,6 +386,7 @@ pthread_debug = get_option('pthread-debug').require(
features += {'pthread-debug': pthread_debug.allowed()} features += {'pthread-debug': pthread_debug.allowed()}
add_project_arguments(flags, language: 'c') add_project_arguments(flags, language: 'c')
add_project_arguments(['-Wno-unused-parameter'], language: 'objc')
add_project_link_arguments(link_flags, language: ['c', 'objc']) add_project_link_arguments(link_flags, language: ['c', 'objc'])