[MOAB-dev] r5915 - in MOAB/trunk: src test test/io test/obb

iulian at mcs.anl.gov iulian at mcs.anl.gov
Fri Dec 14 14:04:03 CST 2012


Author: iulian
Date: 2012-12-14 14:04:03 -0600 (Fri, 14 Dec 2012)
New Revision: 5915

Modified:
   MOAB/trunk/src/HomXform.cpp
   MOAB/trunk/test/OBBTest.cpp
   MOAB/trunk/test/TagTest.cpp
   MOAB/trunk/test/TestTypeSequenceManager.cpp
   MOAB/trunk/test/io/cub_file_test.cc
   MOAB/trunk/test/io/exodus_test.cc
   MOAB/trunk/test/io/read_nc.cpp
   MOAB/trunk/test/io/read_ucd_nc.cpp
   MOAB/trunk/test/io/readutil_test.cpp
   MOAB/trunk/test/kd_tree_test.cpp
   MOAB/trunk/test/obb/obb_test.cpp
   MOAB/trunk/test/obb/obb_time.cpp
   MOAB/trunk/test/scdseq_test.cpp
Log:
more warnings from tests


Modified: MOAB/trunk/src/HomXform.cpp
===================================================================
--- MOAB/trunk/src/HomXform.cpp	2012-12-14 18:45:23 UTC (rev 5914)
+++ MOAB/trunk/src/HomXform.cpp	2012-12-14 20:04:03 UTC (rev 5915)
@@ -151,7 +151,7 @@
 
 int test_coord_xform_operators();
 
-int main(int argc, char* argv[]) 
+int main(int /*argc*/, char**/* argv[]*/)
 {
     // first test HomCoord
 

Modified: MOAB/trunk/test/OBBTest.cpp
===================================================================
--- MOAB/trunk/test/OBBTest.cpp	2012-12-14 18:45:23 UTC (rev 5914)
+++ MOAB/trunk/test/OBBTest.cpp	2012-12-14 20:04:03 UTC (rev 5915)
@@ -1266,9 +1266,9 @@
   min[2] = max[2] = box.scaled_axis(2) % v;
   for (i = 1; i < 21; ++i) {
     CartVect vi( coords + 3*i );
-    CartVect v = vi - box.center;
+    CartVect vLocal = vi - box.center;
     for (int j = 0; j < 3; ++j) {
-      double d = (axis[j] % v) / (axis[j] % axis[j]);
+      double d = (axis[j] % vLocal) / (axis[j] % axis[j]);
       if (d < min[j])
         min[j] = d;
       if (d > max[j])

Modified: MOAB/trunk/test/TagTest.cpp
===================================================================
--- MOAB/trunk/test/TagTest.cpp	2012-12-14 18:45:23 UTC (rev 5914)
+++ MOAB/trunk/test/TagTest.cpp	2012-12-14 20:04:03 UTC (rev 5915)
@@ -390,9 +390,9 @@
     // c) some handles in an Range
     // d) remaining handles (remaining in 'entities');
   EntityHandle one_handle;
-  Range::iterator i = entities.begin() += entities.size()/2;
-  one_handle = *i;
-  entities.erase( i );
+  Range::iterator it = entities.begin() += entities.size()/2;
+  one_handle = *it;
+  entities.erase( it );
   
   Range handle_range;
   std::vector<EntityHandle> handle_list;
@@ -1517,9 +1517,9 @@
     // c) some handles in an Range
     // d) remaining handles (remaining in 'entities');


More information about the moab-dev mailing list