From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7868 invoked by alias); 13 Dec 2011 03:40:32 -0000 Received: (qmail 7856 invoked by uid 22791); 13 Dec 2011 03:40:31 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 03:40:18 +0000 Received: by iahk25 with SMTP id k25so11421845iah.0 for ; Mon, 12 Dec 2011 19:40:18 -0800 (PST) Received: by 10.43.49.66 with SMTP id uz2mr14321498icb.9.1323747618157; Mon, 12 Dec 2011 19:40:18 -0800 (PST) Received: from localhost.localdomain (c-24-18-115-186.hsd1.wa.comcast.net. [24.18.115.186]) by mx.google.com with ESMTPS id e2sm81168651ibe.0.2011.12.12.19.40.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:40:17 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 035/238] [index] python/py-evtregistry.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:41:00 -0000 Message-Id: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00362.txt.bz2 To ChangeLog: * python/py-evtregistry.c (evregpy_disconnect): Rename `index' to `idx'(-Wshadow). --- gdb/python/py-evtregistry.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/python/py-evtregistry.c b/gdb/python/py-evtregistry.c index 67d5715..b5fc811 100644 --- a/gdb/python/py-evtregistry.c +++ b/gdb/python/py-evtregistry.c @@ -56,17 +56,17 @@ static PyObject * evregpy_disconnect (PyObject *self, PyObject *function) { PyObject *func; - int index; + int idx; PyObject *callback_list = (((eventregistry_object *) self)->callbacks); if (!PyArg_ParseTuple (function, "O", &func)) return NULL; - index = PySequence_Index (callback_list, func); - if (index < 0) + idx = PySequence_Index (callback_list, func); + if (idx < 0) Py_RETURN_NONE; - if (PySequence_DelItem (callback_list, index) < 0) + if (PySequence_DelItem (callback_list, idx) < 0) return NULL; Py_RETURN_NONE; -- 1.7.5.4