Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 035/238] [index] python/py-evtregistry.c: -Wshadow fix
@ 2011-12-13  3:41 Andrey Smirnov
  2011-12-13  3:41 ` [PATCH 042/238] [index] exec.c: " Andrey Smirnov
                   ` (26 more replies)
  0 siblings, 27 replies; 31+ messages in thread
From: Andrey Smirnov @ 2011-12-13  3:41 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrey Smirnov

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


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2011-12-13 16:33 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13  3:41 [PATCH 035/238] [index] python/py-evtregistry.c: -Wshadow fix Andrey Smirnov
2011-12-13  3:41 ` [PATCH 042/238] [index] exec.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 056/238] [index] symtab.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 037/238] [index] gnu-v2-abi.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 036/238] [index] i386-tdep.c: " Andrey Smirnov
2011-12-13  8:17   ` Mark Kettenis
2011-12-13 12:36     ` Eli Zaretskii
2011-12-13 16:47       ` Mark Kettenis
2011-12-13  3:41 ` [PATCH 047/238] [index] cp-support.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 039/238] [index] findcmd.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 049/238] [index] completer.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 058/238] [index] valops.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 041/238] [index] f-typeprint.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 043/238] [index] eval.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 048/238] [index] cp-abi.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 038/238] [index] gdbtypes.c: " Andrey Smirnov
2011-12-13  3:41 ` [PATCH 045/238] [index] dwarf2read.c: " Andrey Smirnov
2011-12-13  3:46 ` [PATCH 040/238] [index] f-valprint.c " Andrey Smirnov
2011-12-13  3:46 ` [PATCH 051/238] [index] gnu-v3-abi.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 050/238] [index] coffread.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 044/238] [index] dwarf2read.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 054/238] [index] stabsread.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 053/238] [index] parse.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 060/238] [index] varobj.c: " Andrey Smirnov
2011-12-13  3:47 ` [PATCH 057/238] [index] valarith.c: " Andrey Smirnov
2011-12-13  3:48 ` [PATCH 061/238] [index] wrapper.c: " Andrey Smirnov
2011-12-13  3:48 ` [PATCH 046/238] [index] dcache.c: " Andrey Smirnov
2011-12-13  3:49 ` [PATCH 059/238] [index] value.c: " Andrey Smirnov
2011-12-13  3:49 ` [PATCH 062/238] [index] mi/mi-cmds.c: " Andrey Smirnov
2011-12-13  3:49 ` [PATCH 055/238] [index] symmisc.c: " Andrey Smirnov
2011-12-13  7:18 ` [PATCH 052/238] [index] linespec.c: " Andrey Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox