The attached patch fixes this warning in pybuiltin.pmc:

 pybuiltin.pmc: In function `make_type':
 pybuiltin.pmc:76: warning: declaration of `nameprop' shadows previous local


 Simon

--- dynclasses/pybuiltin.pmc.old        Tue Dec 21 15:30:01 2004
+++ dynclasses/pybuiltin.pmc    Tue Dec 21 15:32:25 2004
@@ -73,7 +73,7 @@ static PMC* make_type(Interp* interprete
         item = VTABLE_get_pmc_keyed_str(interpreter, stash, key);
 
         if (item->vtable->base_type == enum_class_NCI) {
-            PMC *nameprop = pmc_new(interpreter, dynclass_PyString);
+            nameprop = pmc_new(interpreter, dynclass_PyString);
             VTABLE_set_string_native(interpreter, nameprop, key);
             VTABLE_setprop(interpreter, item, NAME, nameprop);
             item->vtable = Parrot_base_vtables[dynclass_PyNCI];

Reply via email to