This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[ecj] Fix declarations
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 22 Nov 2006 14:10:08 +0000
- Subject: [ecj] Fix declarations
2006-11-22 Andrew Haley <aph@redhat.com>
* jcf-reader.c (get_attribute): Mark attr_type unused.
* builtins.c (compareAndSwapObject_builtin): Fix declaration.
Index: builtins.c
===================================================================
--- builtins.c (revision 118936)
+++ builtins.c (working copy)
@@ -354,11 +354,12 @@
|| sync_compare_and_swap[mode] != CODE_FOR_nothing)
{
tree newarglist, addr, stmt;
- UNMARSHAL5 (method_arguments);
+ int builtin;
- int builtin = (POINTER_SIZE == 32
- ? BUILT_IN_BOOL_COMPARE_AND_SWAP_4
- : BUILT_IN_BOOL_COMPARE_AND_SWAP_8);
+ UNMARSHAL5 (method_arguments);
+ builtin = (POINTER_SIZE == 32
+ ? BUILT_IN_BOOL_COMPARE_AND_SWAP_4
+ : BUILT_IN_BOOL_COMPARE_AND_SWAP_8);
addr = build_addr_sum (value_type, obj_arg, offset_arg);
Index: jcf-reader.c
===================================================================
--- jcf-reader.c (revision 118936)
+++ jcf-reader.c (working copy)
@@ -103,7 +103,8 @@
#endif
static int
-get_attribute (JCF *jcf, int index, jv_attr_type attr_type)
+get_attribute (JCF *jcf, int index,
+ jv_attr_type attr_type ATTRIBUTE_UNUSED)
{
uint16 attribute_name = (JCF_FILL (jcf, 6), JCF_readu2 (jcf));
uint32 attribute_length = JCF_readu4 (jcf);