This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove bogus 'return'
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 31 Mar 2011 10:19:55 -0600
- Subject: FYI: remove bogus 'return'
I am checking this in.
I ran across this bogus code while looking at another bug.
Tom
2011-03-31 Tom Tromey <tromey@redhat.com>
* varobj.c (instantiate_pretty_printer): Remove duplicate
'return'.
Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.174
diff -u -r1.174 varobj.c
--- varobj.c 15 Mar 2011 15:52:09 -0000 1.174
+++ varobj.c 31 Mar 2011 16:17:59 -0000
@@ -785,7 +785,6 @@
printer = PyObject_CallFunctionObjArgs (constructor, val_obj, NULL);
Py_DECREF (val_obj);
return printer;
- return NULL;
}
#endif