This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PING^2: silence unused warning in libobjc
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pinskia at gmail dot com
- Date: Mon, 04 Jan 2010 09:19:03 +1100
- Subject: 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);