Skip to content

Commit 7e16b22

Browse files
committed
meson.build: Don't fail if warning_level=everything
1 parent f832de7 commit 7e16b22

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
@@ -78,7 +78,12 @@ if is_dist_check
7878
else
7979
cpp_warnings = get_option('warnings')
8080
endif
81-
warning_level = get_option('warning_level').to_int()
81+
if get_option('warning_level') in ['0','1','2','3','4','5']
82+
warning_level = get_option('warning_level').to_int()
83+
else
84+
# For instance get_option('warning_level') == 'everything'
85+
warning_level = 99
86+
endif
8287
werror = get_option('werror')
8388
build_deprecated_api = get_option('build-deprecated-api')
8489
build_documentation_opt = get_option('build-documentation')

0 commit comments

Comments
 (0)