Skip to content

Commit 7db84ca

Browse files
committed
Fix meson warnings
1 parent 12141bf commit 7db84ca

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ project(
77
).stdout().strip(),
88
default_options: [
99
# the warning level is set in code below, gives more flexibility there
10-
'warning_level=0',
10+
'warning_level=3',
1111
],
12+
meson_version: '>= 1.3.0'
1213
)
1314

1415
defines = run_command(
@@ -387,7 +388,7 @@ warnings_temp_mask = []
387388

388389
if cc.get_argument_syntax() == 'msvc'
389390
# base warnings on msvc
390-
add_global_arguments(['/W3', '/wd4142', '/wd4996'], language: 'c')
391+
add_global_arguments(['/wd4142', '/wd4996'], language: 'c')
391392

392393
warnings_temp_mask += ['/wd6385', '/wd6386']
393394

meson_options.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ option('midi', type: 'feature', value: 'enabled')
2424
# Controls whether to make a "stripped" pygame install. Enabling this disables
2525
# the bundling of docs/examples/tests/stubs in the wheels.
2626
# The default behaviour is to bundle all of these.
27-
option('stripped', type: 'boolean', value: 'false')
27+
option('stripped', type: 'boolean', value: false)
2828

2929
# Controls whether to compile with -Werror (or its msvc equivalent). The default
3030
# behaviour is to not do this by default
31-
option('error_on_warns', type: 'boolean', value: 'false')
31+
option('error_on_warns', type: 'boolean', value: false)
3232

3333
# Controls whether to error on build if generated docs are missing. Defaults to
3434
# false.
35-
option('error_docs_missing', type: 'boolean', value: 'false')
35+
option('error_docs_missing', type: 'boolean', value: false)
3636

3737
# Controls whether to do a coverage build.
3838
# This argument must be used together with the editable install.

0 commit comments

Comments
 (0)