summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2012-02-03 19:52:42 (GMT)
committerDavid Malcolm <dmalcolm@redhat.com>2012-02-03 19:52:42 (GMT)
commit491158fbed92f707e48eca996e5b88825ddf1ab7 (patch)
tree261c44f1e5b024025265ce88e25a782ffcdf4a4e
parentf1e467197eba7d8537fcfa8d723276748931e95b (diff)
downloadgcc-python-plugin-491158fbed92f707e48eca996e5b88825ddf1ab7.zip
gcc-python-plugin-491158fbed92f707e48eca996e5b88825ddf1ab7.tar.gz
gcc-python-plugin-491158fbed92f707e48eca996e5b88825ddf1ab7.tar.xz
remove stray assignment
-rw-r--r--gccutils.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/gccutils.py b/gccutils.py
index 0fa49bb..54767ae 100644
--- a/gccutils.py
+++ b/gccutils.py
@@ -49,7 +49,6 @@ def get_variables_as_dict():
def get_global_vardecl_by_name(name):
# Look up a variable in global scope by name, returning a gcc.VarDecl,
# or None if not found
- result = {}
for u in gcc.get_translation_units():
for v in u.block.vars:
if isinstance(v, gcc.VarDecl):