harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r724057 - in /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify: verifier_common.cpp verifier_common.h
Date Sat, 06 Dec 2008 23:47:26 GMT
Author: ndbeyer
Date: Sat Dec  6 15:47:26 2008
New Revision: 724057

URL: http://svn.apache.org/viewvc?rev=724057&view=rev
Log:
fix some compile warnings from gcc

Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.cpp
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.cpp?rev=724057&r1=724056&r2=724057&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.cpp Sat Dec  6 15:47:26
2008
@@ -189,7 +189,7 @@
     printf(" .......................................................................... \n");
     printf(" Allocation  Verify: %s , ", alloc_verifier->is_verification_passed?"passed":"failed");
     printf("new nos: %d : %d , ", alloc_verifier->num_nos_newobjs, alloc_verifier->num_nos_objs);
-    printf("new los: %d : %d \n", alloc_verifier->num_los_newobjs, 
+    printf("new los: %d : %lld \n", alloc_verifier->num_los_newobjs, 
           alloc_verifier->num_los_objs-alloc_verifier->last_num_los_objs);
   }
 
@@ -209,7 +209,7 @@
   }
 }
 
-void verifier_log_start(char* message)
+void verifier_log_start(const char* message)
 {
   printf("------------------------------%-16s------------------------------\n", message);
 }
@@ -217,7 +217,7 @@
 void verifier_collect_kind_log(Heap_Verifier* heap_verifier)
 {
   GC* gc = heap_verifier->gc;
-  char* gc_kind;
+  const char* gc_kind;
   if(collect_is_minor()){ 
     gc_kind = " minor collection.";
   }else if(collect_is_fallback()){ 

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h?rev=724057&r1=724056&r2=724057&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h Sat Dec  6 15:47:26
2008
@@ -77,7 +77,7 @@
 Boolean verifier_parse_options(Heap_Verifier* heap_verifier, char* options);
 void verifier_log_before_gc(Heap_Verifier* heap_verifier);
 void verifier_log_after_gc(Heap_Verifier* heap_verifier);
-void verifier_log_start(char* message);
+void verifier_log_start(const char* message);
 Boolean verify_rootset_slot(REF* p_ref, Heap_Verifier*  heap_verifier);
 
 



Mime
View raw message