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]

Patch checked in for warning nit in haifa-sched.c



Found this one on Irix6:

../../egcs-CVS19990913/gcc/haifa-sched.c: In function `actual_hazard':
../../egcs-CVS19990913/gcc/haifa-sched.c:2953: warning: unused
	variable `this_cost'


Patch checked in.

		--Kaveh



Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ChangeLog,v
retrieving revision 1.4390
diff -u -p -r1.4390 ChangeLog
--- ChangeLog	1999/09/14 18:19:00	1.4390
+++ ChangeLog	1999/09/14 18:42:42
@@ -1,3 +1,8 @@
+Tue Sep 14 14:41:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* haifa-sched.c (actual_hazard): Move declaration of variable
+	`this_cost' into the scope where it is used.
+
 Tue Sep 14 14:14:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
 	* c-pragma.c (handle_pragma_token): Wrap variables `name' and
Index: haifa-sched.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/haifa-sched.c,v
retrieving revision 1.106
diff -u -p -r1.106 haifa-sched.c
--- haifa-sched.c	1999/09/08 15:44:16	1.106
+++ haifa-sched.c	1999/09/14 18:42:47
@@ -2950,9 +2950,9 @@ actual_hazard (unit, insn, clock, cost)
       int instance = unit;
       int best_cost = actual_hazard_this_instance (unit, instance, insn,
 						   clock, cost);
+#if MAX_MULTIPLICITY > 1
       int this_cost;
 
-#if MAX_MULTIPLICITY > 1
       if (best_cost > cost)
 	{
 	  for (i = function_units[unit].multiplicity - 1; i > 0; i--)


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