Created
July 19, 2013 21:27
-
-
Save eltjpm/6042475 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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