diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-08 01:50:25 -0500 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 08:58:18 +0100 |
commit | b2c1e55e5d960f794b41e55b9c6c49e5a419e077 (patch) | |
tree | 25012416d8cad14a948bcb10a143e42d7dda5136 | |
parent | cbe30f614d878c2622e86d9c5cd8da558ef16936 (diff) | |
download | mpv-b2c1e55e5d960f794b41e55b9c6c49e5a419e077.tar.bz2 mpv-b2c1e55e5d960f794b41e55b9c6c49e5a419e077.tar.xz |
meson: bump warning level to 2
Ignore a few noisy warnings for now.
-rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 40c5551fe0..6ccc8bbfb8 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,7 @@ project('mpv', 'buildtype=debugoptimized', 'b_lundef=false', 'c_std=c11', - 'warning_level=1', + 'warning_level=2', ] ) @@ -267,6 +267,10 @@ flags = ['-D_FILE_OFFSET_BITS=64'] link_flags = [] test_flags = ['-Werror=implicit-function-declaration', + '-Wno-missing-field-initializers', + '-Wno-sign-compare', + '-Wno-unused-parameter', + '-Wno-cast-function-type', '-Wempty-body', '-Wdisabled-optimization', '-Wstrict-prototypes', @@ -382,6 +386,7 @@ pthread_debug = get_option('pthread-debug').require( features += {'pthread-debug': pthread_debug.allowed()} add_project_arguments(flags, language: 'c') +add_project_arguments(['-Wno-unused-parameter'], language: 'objc') add_project_link_arguments(link_flags, language: ['c', 'objc']) |