Skip to content

Commit 5591f03

Browse files
committed
meson.build: Don't fail if warning_level=everything
1 parent 1a5ec5c commit 5591f03

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
@@ -80,7 +80,12 @@ if is_dist_check
8080
else
8181
cpp_warnings = get_option('warnings')
8282
endif
83-
warning_level = get_option('warning_level').to_int()
83+
if get_option('warning_level') in ['0','1','2','3','4','5']
84+
warning_level = get_option('warning_level').to_int()
85+
else
86+
# For instance get_option('warning_level') == 'everything'
87+
warning_level = 99
88+
endif
8489
werror = get_option('werror')
8590
build_deprecated_api = get_option('build-deprecated-api')
8691
build_documentation_opt = get_option('build-documentation')

0 commit comments

Comments
 (0)