Skip to content

Instantly share code, notes, and snippets.

@eltjpm
Created July 19, 2013 21:27
Show Gist options
  • Save eltjpm/6042475 to your computer and use it in GitHub Desktop.
Save eltjpm/6042475 to your computer and use it in GitHub Desktop.
Index: numba/control_flow/reaching.py
===================================================================
--- numba/control_flow/reaching.py (revision 80690)
+++ numba/control_flow/reaching.py (revision 80691)
@@ -132,7 +132,8 @@
entry, "Unused argument '%s'" % entry.name)
else:
if (warn_unused and entry.warn_unused and
- flow.is_tracked(entry)):
+ not entry.name.startswith('_') and
+ flow.is_tracked(entry)):
if getattr(entry, 'lineno', 1) > 0:
self.messages.warning(
entry, "Unused variable '%s'" % entry.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment