Enclosed patch fixes this warning:

  io/io.c: In function `PIO_copy_stack':
  io/io.c:277: warning: declaration of `new_stack' shadows global
 declaration

 Simon

--- io.c.old    Tue Jan  8 17:40:19 2002
+++ io.c        Tue Jan  8 17:41:49 2002
@@ -274,11 +274,11 @@
  * IO object. Later we will do some funky copy-on-write stuff.
  */
 ParrotIOLayer * PIO_copy_stack( ParrotIOLayer * stack ) {
-        ParrotIOLayer * new_stack;
+        ParrotIOLayer * new_io_stack;
         ParrotIOLayer ** ptr_new;
         ParrotIOLayer * ptr_proto;
         ParrotIOLayer * ptr_last = NULL;
-        ptr_new = &new_stack;
+        ptr_new = &new_io_stack;
         ptr_proto = stack;
         while( ptr_proto ) { 
                 *ptr_new = PIO_base_new_layer( ptr_proto );
@@ -288,7 +288,7 @@
                 ptr_new = &((*ptr_new)->down);
         }
 
-        return new_stack;
+        return new_io_stack;
 }
 
 
 


Reply via email to