Commit ff0fc24b authored by Robert Bradshaw's avatar Robert Bradshaw

Speccial case the unused '_' in warnings.

parent 6b05ae62
...@@ -616,7 +616,8 @@ def check_definitions(flow, compiler_directives): ...@@ -616,7 +616,8 @@ def check_definitions(flow, compiler_directives):
# Unused entries # Unused entries
for entry in flow.entries: for entry in flow.entries:
if (not entry.cf_references and not entry.is_pyclass_attr if (not entry.cf_references and not entry.is_pyclass_attr
and not entry.in_closure): and not entry.in_closure
and entry.name != '_'):
if entry.is_arg: if entry.is_arg:
if warn_unused_arg: if warn_unused_arg:
messages.warning(entry.pos, "Unused argument '%s'" % messages.warning(entry.pos, "Unused argument '%s'" %
......
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