Commit 2c18e3c76aad1b426617db05a4384e7c3a920176

Zachary Waldowski 2013-12-30T16:14:02

Darwin/aarch64: Fix "shadows declaration" warnings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index deb5767..398d246 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -1081,12 +1081,12 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
         case FFI_TYPE_STRUCT:
           if (is_hfa (cif->rtype))
 	    {
-	      int i;
+	      int j;
 	      unsigned short type = get_homogeneous_type (cif->rtype);
 	      unsigned elems = element_count (cif->rtype);
-	      for (i = 0; i < elems; i++)
+	      for (j = 0; j < elems; j++)
 		{
-		  void *reg = get_basic_type_addr (type, context, i);
+		  void *reg = get_basic_type_addr (type, context, j);
 		  copy_basic_type (reg, rvalue, type);
 		  rvalue += get_basic_type_size (type);
 		}