From c0070aadae450d8367f54a4658f474a8a8ab4432 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 26 Oct 2015 20:18:05 +0200 Subject: [PATCH] Now that projects can easily override defaults, return warning level to 2. --- meson.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/meson.py b/meson.py index a51f5dd31..4c8e171e6 100755 --- a/meson.py +++ b/meson.py @@ -31,13 +31,7 @@ build_types = ['plain', 'debug', 'debugoptimized', 'release'] layouts = ['mirror', 'flat'] warning_levels = ['1', '2', '3'] -default_warning = '1' -try: - warn_candidate = os.environ['MESON_WARN_LEVEL'] - if warn_candidate in warning_levels: - default_warning = warn_candidate -except KeyError: - pass +default_warning = '2' if mesonlib.is_windows(): def_prefix = 'c:/'