Commit 5db9f262 authored by Vitja Makarov's avatar Vitja Makarov

Set entry.cf_used to False when argument is unused

parent 231aabfb
...@@ -523,8 +523,7 @@ def check_definitions(flow, compiler_directives): ...@@ -523,8 +523,7 @@ def check_definitions(flow, compiler_directives):
if is_arg: if is_arg:
if warn_unused_arg: if warn_unused_arg:
messages.warning(entry.pos, "Unused argument '%s'" % entry.name) messages.warning(entry.pos, "Unused argument '%s'" % entry.name)
# TODO: handle unused arguments entry.cf_used = False
entry.cf_used = True
else: else:
if warn_unused: if warn_unused:
messages.warning(entry.pos, "Unused entry '%s'" % entry.name) messages.warning(entry.pos, "Unused entry '%s'" % entry.name)
......
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