This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

PING^2: silence unused warning in libobjc


This patch is still unreviewed from mid-December.

Thanks, Ben


2009-12-14  Ben Elliston  <bje@au.ibm.com>

	* objc-act.c (generate_struct_by_value_array): Do not output a
	definition for struct_forward_array.

Index: objc-act.c
===================================================================
--- objc-act.c	(revision 155594)
+++ objc-act.c	(working copy)
@@ -492,14 +492,6 @@ generate_struct_by_value_array (void)
 	if (!aggregate_in_mem[i])
 	  break;
       printf ("#define OBJC_MAX_STRUCT_BY_VALUE %d\n\n", i);
-
-      /* The first member of the structure is always 0 because we don't handle
-	 structures with 0 members */
-      printf ("static int struct_forward_array[] = {\n  0");
-
-      for (j = 1; j <= i; j++)
-	printf (", %d", aggregate_in_mem[j]);
-      printf ("\n};\n");
     }
 
   exit (0);



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