diff options
author | Tristan Partin <tpartin@micron.com> | 2022-11-15 18:19:28 -0600 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-11-16 03:17:05 -0500 |
commit | bfc813200c8c4401985151216390f860246e0d71 (patch) | |
tree | ea394cee37673fd9bb482259862622508d05c967 | |
parent | 8ee4660788df678b64bb2986b5f2f8474c127ae2 (diff) | |
download | meson-bfc813200c8c4401985151216390f860246e0d71.zip meson-bfc813200c8c4401985151216390f860246e0d71.tar.gz meson-bfc813200c8c4401985151216390f860246e0d71.tar.bz2 |
Change the warning generated by importing an unstable module to non-fatal
Penalizing users for helping to test unstable modules really makes no
sense. As a fatal warning, users can no longer use
`--fatal-meson-warnings`.
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 0bab57e..adcd509 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -664,7 +664,7 @@ class Interpreter(InterpreterBase, HoldableObject): raise InvalidArguments(f'Module "{ext_module.INFO.name}" has not been stabilized, and must be imported as unstable-{ext_module.INFO.name}') ext_module = NotFoundExtensionModule(real_modname) else: - mlog.warning(f'Module {ext_module.INFO.name} has no backwards or forwards compatibility and might not exist in future releases.', location=node) + mlog.warning(f'Module {ext_module.INFO.name} has no backwards or forwards compatibility and might not exist in future releases.', location=node, fatal=False) self.modules[real_modname] = ext_module return ext_module |