Skip to content

Commit e62bf47

Browse files
committed
meson.build: Don't fail if warning_level=everything
1 parent eb7db8e commit e62bf47

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ if is_dist_check
8787
else
8888
cpp_warnings = get_option('warnings')
8989
endif
90-
warning_level = get_option('warning_level').to_int()
90+
if get_option('warning_level') in ['0','1','2','3','4','5']
91+
warning_level = get_option('warning_level').to_int()
92+
else
93+
# For instance get_option('warning_level') == 'everything'
94+
warning_level = 99
95+
endif
9196
werror = get_option('werror')
9297
build_deprecated_api = get_option('build-deprecated-api')
9398
build_documentation_opt = get_option('build-documentation')

0 commit comments

Comments
 (0)