diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ddf4de0116a..1f885b71e31 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2017-02-10 Tom Tromey + + * python/py-value.c (valpy_richcompare_throw): Remove unnecessary + "cleanup" local. + * python/py-type.c (typy_legacy_template_argument): Remove + unnecessary "cleanup" local. + 2017-02-10 Tom Tromey * python/python.c (do_start_initialization): New function, from diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 9c20582abe5..d3506ca21d8 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -833,7 +833,6 @@ typy_legacy_template_argument (struct type *type, const struct block *block, std::unique_ptr info; const char *err; struct type *argtype; - struct cleanup *cleanup; if (TYPE_NAME (type) == NULL) { diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index b9b012ba727..eb3d307b19b 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1330,7 +1330,6 @@ valpy_richcompare_throw (PyObject *self, PyObject *other, int op) int result; struct value *value_other; struct value *value_self; - struct cleanup *cleanup; scoped_value_mark free_values;