This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 056/238] [index] symtab.c: -Wshadow fix


To ChangeLog:
	* symtab.c (find_line_symtab): Rename `index' to `idx'(-Wshadow).
---
 gdb/symtab.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/symtab.c b/gdb/symtab.c
index 3d94e6b..f972eeb 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2182,7 +2182,7 @@ find_pc_line (CORE_ADDR pc, int notcurrent)
 
 struct symtab *
 find_line_symtab (struct symtab *symtab, int line,
-		  int *index, int *exact_match)
+		  int *idx, int *exact_match)
 {
   int exact = 0;  /* Initialized here to avoid a compiler warning.  */
 
@@ -2265,8 +2265,8 @@ done:
   if (best_index < 0)
     return NULL;
 
-  if (index)
-    *index = best_index;
+  if (idx)
+    *idx = best_index;
   if (exact_match)
     *exact_match = exact;
 
-- 
1.7.5.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]