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]

Patch installed for unused variable warning


Fixes:
 > tree-inline.c:615: warning: unused variable `cleanup'

Bootstrapped on sparc-sun-solaris2.7 --disable-checking --disable-nls
and installed as obvious.


2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* tree-inline.c (initialize_inlined_parameters): Wrap variable in
	the macro test controlling its use.

diff -rup orig/egcc-CVS20020818/gcc/tree-inline.c egcc-CVS20020818/gcc/tree-inline.c
--- orig/egcc-CVS20020818/gcc/tree-inline.c	2002-08-16 07:00:30.000000000 -0400
+++ egcc-CVS20020818/gcc/tree-inline.c	2002-08-19 10:52:45.055595483 -0400
@@ -609,10 +609,10 @@ initialize_inlined_parameters (id, args,
     {
 #ifndef INLINER_FOR_JAVA
       tree init_stmt;
+      tree cleanup;
 #endif /* not INLINER_FOR_JAVA */
       tree var;
       tree value;
-      tree cleanup;
 
       /* Find the initializer.  */
       value = (*lang_hooks.tree_inlining.convert_parm_for_inlining)


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