This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for unused variable warning
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Aug 2002 11:28:49 -0400 (EDT)
- Subject: 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)