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]

Warning cleanup


This patch allays a couple of glaring warnings.  Okay to commit?


2001-06-18  Ben Elliston  <bje@redhat.com>

	* emit-rtl.c (operand_subword): Remove unused local "new".
	* except.c (resolve_fixup_regions): Initialise "cleanup".

Index: emit-rtl.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/emit-rtl.c,v
retrieving revision 1.175
diff -u -r1.175 emit-rtl.c
--- emit-rtl.c	2001/06/10 05:08:28	1.175
+++ emit-rtl.c	2001/06/18 05:51:27
@@ -1445,7 +1445,6 @@
      int validate_address;
      enum machine_mode mode;
 {
-  rtx new;
   if (mode == VOIDmode)
     mode = GET_MODE (op);
 
Index: except.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/except.c,v
retrieving revision 1.102
diff -u -r1.102 except.c
--- except.c	2001/06/04 18:09:06	1.102
+++ except.c	2001/06/18 05:51:29
@@ -1082,7 +1082,7 @@
   for (i = 1; i <= n; ++i)
     {
       struct eh_region *fixup = cfun->eh->region_array[i];
-      struct eh_region *cleanup;
+      struct eh_region *cleanup = 0;
 
       if (! fixup || fixup->type != ERT_FIXUP)
 	continue;


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