diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-12-11 14:22:24 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-12-11 14:26:35 +0100 |
commit | 3200ab2b84d34cf43e4e357bb527544e33f3e22a (patch) | |
tree | d2f12ab465ac3f40cf13c96313307d7d2da0d4dd | |
parent | 669e87a460bca3fa8d57cdaeac70bff183636354 (diff) |
meson.build: Don't fail if warning_level=everything
-rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index e8b3bd5..494160a 100644 --- a/meson.build +++ b/meson.build @@ -79,7 +79,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_exceptions_api = get_option('build-exceptions-api') |