From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17269 invoked by alias); 3 Nov 2008 22:17:47 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 17173 invoked by uid 9766); 3 Nov 2008 22:17:47 -0000 Date: Mon, 03 Nov 2008 22:17:00 -0000 Message-ID: <20081103221747.17150.qmail@sourceware.org> From: ppluzhnikov@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python: 2008-11-03 Paul Pluzhnikov X-Git-Refname: refs/heads/archer-tromey-python X-Git-Reftype: branch X-Git-Oldrev: 216d6dbe872c72303a3d24b1538e44560b003df3 X-Git-Newrev: be661861f7b40daae7718ca354c8f0e4c9903691 X-SW-Source: 2008-q4/txt/msg00062.txt.bz2 List-Id: The branch, archer-tromey-python has been updated via be661861f7b40daae7718ca354c8f0e4c9903691 (commit) from 216d6dbe872c72303a3d24b1538e44560b003df3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit be661861f7b40daae7718ca354c8f0e4c9903691 Author: Paul Pluzhnikov Date: Mon Nov 3 14:17:27 2008 -0800 2008-11-03 Paul Pluzhnikov * python/python.c (find_pretty_printer): Fix gcc-4.3.1 warnings. ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 4 ++++ gdb/python/python.c | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) First 500 lines of diff: diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51e62a8..5533820 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-11-03 Paul Pluzhnikov + + * python/python.c (find_pretty_printer): Fix gcc-4.3.1 warnings. + 2008-11-03 Tom Tromey * python/python-value.c (valpy_getitem): Convert field name to diff --git a/gdb/python/python.c b/gdb/python/python.c index af50c4c..5f6a269 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -684,7 +684,7 @@ search_pp_dictionary (PyObject *dict, char *type_name) static PyObject * find_pretty_printer (struct type *type, PyObject **dictp, int is_mi) { - PyObject *dict, *found; + PyObject *dict, *found = NULL; char *type_name = NULL; char *dict_name; struct objfile *obj; @@ -701,10 +701,7 @@ find_pretty_printer (struct type *type, PyObject **dictp, int is_mi) type_name = get_type (type); } if (except.reason < 0) - { - Py_DECREF (dict); - return NULL; - } + return NULL; /* Look at the pretty-printer dictionary for each objfile. */ ALL_OBJFILES (obj) hooks/post-receive -- Repository for Project Archer.