aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-31 17:16:28 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-01-01 13:21:00 +0000
commitf85fde743a292e24c9aed81c23f6af466054aee3 (patch)
tree1116d9757f1668ddf2894f6db429a81a65c38994 /mesonbuild/interpreter.py
parent2ed875e1b49d06d677d299534f2f8290bfbd3b35 (diff)
downloadmeson-f85fde743a292e24c9aed81c23f6af466054aee3.zip
meson-f85fde743a292e24c9aed81c23f6af466054aee3.tar.gz
meson-f85fde743a292e24c9aed81c23f6af466054aee3.tar.bz2
Wire up locations in a couple more warnings
These are the remaining warnings in the parser, where we have the location to hand.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 8170357..85c3f77 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1574,7 +1574,7 @@ class Interpreter(InterpreterBase):
modname = args[0]
if modname.startswith('unstable-'):
plainname = modname.split('-', 1)[1]
- mlog.warning('Module %s has no backwards or forwards compatibility and might not exist in future releases.' % modname)
+ mlog.warning('Module %s has no backwards or forwards compatibility and might not exist in future releases' % modname, location=node)
modname = 'unstable_' + plainname
if modname not in self.environment.coredata.modules:
try:
@@ -2732,7 +2732,7 @@ root and issuing %s.
mlog.warning(
"The variable(s) %s in the input file %s are not "
"present in the given configuration data" % (
- var_list, inputfile))
+ var_list, inputfile), location=node)
else:
mesonlib.dump_conf_header(ofile_abs, conf.held_object)
conf.mark_used()