Commit 96019a8d authored by Vitja Makarov's avatar Vitja Makarov

Warn on non-pyobject unbound variables

parent 0a93ccb4
......@@ -441,6 +441,11 @@ def check_definitions(flow, compiler_directives):
node.pos,
"local variable '%s' referenced before assignment"
% entry.name)
else:
messages.warning(
node.pos,
"local variable '%s' referenced before assignment"
% entry.name)
node.cf_is_null = True
else:
if warn_maybe_uninitialized:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment