Skip to content

Commit

Permalink
meson.build: Don't fail if warning_level=everything
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellahl committed Dec 11, 2023
1 parent eb7db8e commit e62bf47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ if is_dist_check
else
cpp_warnings = get_option('warnings')
endif
warning_level = get_option('warning_level').to_int()
if get_option('warning_level') in ['0','1','2','3','4','5']
warning_level = get_option('warning_level').to_int()
else
# For instance get_option('warning_level') == 'everything'
warning_level = 99
endif
werror = get_option('werror')
build_deprecated_api = get_option('build-deprecated-api')
build_documentation_opt = get_option('build-documentation')
Expand Down

0 comments on commit e62bf47

Please sign in to comment.