[Avida-SVN] r3501 - in development/source: analyze platform/tcmalloc-1.4

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Fri Oct 16 12:18:55 PDT 2009


Author: brysonda
Date: 2009-10-16 15:18:55 -0400 (Fri, 16 Oct 2009)
New Revision: 3501

Modified:
   development/source/analyze/cAnalyze.cc
   development/source/platform/tcmalloc-1.4/central_freelist.cc
Log:
Fix a couple of compile warnings.   Unused variable in CommandPrintPhenotypes.  Sign comparison warning in central_freelist.

Modified: development/source/analyze/cAnalyze.cc
===================================================================
--- development/source/analyze/cAnalyze.cc	2009-10-16 18:45:10 UTC (rev 3500)
+++ development/source/analyze/cAnalyze.cc	2009-10-16 19:18:55 UTC (rev 3501)
@@ -2633,7 +2633,6 @@
   
   // Setup the phenotype categories...
   const int num_tasks = batch[cur_batch].List().GetFirst()->GetNumTasks();
-  const int num_phenotypes = 1 << (num_tasks + 1);
   
   tHashTable<cBitArray, p_stats> phenotype_table(HASH_TABLE_SIZE_MEDIUM);
   

Modified: development/source/platform/tcmalloc-1.4/central_freelist.cc
===================================================================
--- development/source/platform/tcmalloc-1.4/central_freelist.cc	2009-10-16 18:45:10 UTC (rev 3500)
+++ development/source/platform/tcmalloc-1.4/central_freelist.cc	2009-10-16 19:18:55 UTC (rev 3501)
@@ -97,7 +97,7 @@
   // The following check is expensive, so it is disabled by default
   if (false) {
     // Check that object does not occur in list
-    int got = 0;
+    unsigned int got = 0;
     for (void* p = span->objects; p != NULL; p = *((void**) p)) {
       ASSERT(p != object);
       got++;




More information about the Avida-cvs mailing list