* src/vm/jit/intrp/codegen.c (codegen): Initialize uf to NULL for
authoredwin <none@none>
Thu, 26 Oct 2006 11:29:42 +0000 (11:29 +0000)
committeredwin <none@none>
Thu, 26 Oct 2006 11:29:42 +0000 (11:29 +0000)
resolved fields, to avoid warnings.

* src/vm/jit/intrp/engine.c (engine): Initialize
classcastexception_object and arrayindexoutofbounds_index to avoid
warnings.

src/vm/jit/intrp/codegen.c
src/vm/jit/intrp/engine.c

index 2ce5b1f3a64fad90a9c1fbfb1b06956d6a8a17f3..3c2b1dc095464ecdc01bb9dc2e0f84be84bb700d 100644 (file)
@@ -29,7 +29,7 @@
                        
    Changes: Edwin Steiner
 
-   $Id: codegen.c 5785 2006-10-15 22:25:54Z edwin $
+   $Id: codegen.c 5835 2006-10-26 11:29:42Z edwin $
 
 */
 
@@ -1112,6 +1112,7 @@ dont_opt_IF_LCMPxx:
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
+                               uf        = NULL;
                                fieldtype = fi->type;
                        }
 
@@ -1162,6 +1163,7 @@ dont_opt_IF_LCMPxx:
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
+                               uf        = NULL;
                                fieldtype = fi->type;
                        }
 
@@ -1213,6 +1215,7 @@ dont_opt_IF_LCMPxx:
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
+                               uf        = NULL;
                                fieldtype = fi->type;
                        }
 
@@ -1255,6 +1258,7 @@ dont_opt_IF_LCMPxx:
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
+                               uf        = NULL;
                                fieldtype = fi->type;
                        }
 
index 555562bbf8b93ab2b9b40f5cdec687e79c2c1085..6b7e5bc4779bf12aaed7fd9789bf090ab254eab7 100644 (file)
@@ -29,7 +29,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: engine.c 5702 2006-10-05 20:18:41Z edwin $
+   $Id: engine.c 5835 2006-10-26 11:29:42Z edwin $
 */
 
 
@@ -250,8 +250,8 @@ engine(Inst *ip0, Cell * sp0, Cell * fp)
   Label throw_classcastexception                        = &&throw_classcastexception1;  
   Label throw_nullpointerexception                  = &&throw_nullpointerexception1;
   Label throw_arraystoreexception            = &&throw_arraystoreexception1;
-  java_objectheader *classcastexception_object;
-  s4 arrayindexoutofbounds_index; /* pass the index to the throw code */
+  java_objectheader *classcastexception_object = NULL;
+  s4 arrayindexoutofbounds_index = 0; /* pass the index to the throw code */
 
   if (vm_debug)
       fprintf(vm_out,"entering engine(%p,%p,%p)\n",ip0,sp,fp);