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]

[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);


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