diff options
author | Tristan Partin <tpartin@micron.com> | 2022-11-15 18:19:28 -0600 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-11-21 15:43:52 +0530 |
commit | 63b3d0a041365a491806aa5d7170a56f33cf77bd (patch) | |
tree | 20dc561cf2c672513dcb4414f304674c7176b0d4 | |
parent | 686d77bf97526729b8528abafe8926336d02e376 (diff) | |
download | meson-63b3d0a041365a491806aa5d7170a56f33cf77bd.zip meson-63b3d0a041365a491806aa5d7170a56f33cf77bd.tar.gz meson-63b3d0a041365a491806aa5d7170a56f33cf77bd.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 |