[MOAB-dev] r5923 - in MOAB/trunk/src: io parallel

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Dec 17 23:51:44 CST 2012


Author: iulian
Date: 2012-12-17 23:51:44 -0600 (Mon, 17 Dec 2012)
New Revision: 5923

Modified:
   MOAB/trunk/src/io/ReadCGM.cpp
   MOAB/trunk/src/parallel/ProcConfig.cpp
Log:
eliminate some more warnings from moab build with cgm


Modified: MOAB/trunk/src/io/ReadCGM.cpp
===================================================================
--- MOAB/trunk/src/io/ReadCGM.cpp	2012-12-18 05:49:44 UTC (rev 5922)
+++ MOAB/trunk/src/io/ReadCGM.cpp	2012-12-18 05:51:44 UTC (rev 5923)
@@ -77,7 +77,7 @@
   ErrorCode rval;
 
   // get some tag handles
-  int negone = -1, zero = 0, negonearr[] = {-1, -1, -1, -1};
+  int negone = -1, zero = 0 /*, negonearr[] = {-1, -1, -1, -1}*/;
   rval = mdbImpl->tag_get_handle( GEOM_DIMENSION_TAG_NAME, 1, MB_TYPE_INTEGER,
                                   geom_tag, MB_TAG_SPARSE|MB_TAG_CREAT, &negone); 
   assert(!rval);
@@ -122,7 +122,7 @@
                       const EntityHandle* file_set,
                       const FileOptions& opts,
                       const ReaderIface::SubsetList* subset_list,
-                      const Tag* file_id_tag)
+                      const Tag* /*file_id_tag*/)
 {
   // blocks_to_load and num_blocks are ignored.
   ErrorCode rval;
@@ -331,7 +331,7 @@
     if (name_list.size() == 0)
       continue;
     name_list.reset();
-    CubitString name = *name_list.get();
+    CubitString name1 = *name_list.get();
     
     EntityHandle h;
     rval = mdbImpl->create_meshset( MESHSET_SET, h );
@@ -340,9 +340,9 @@
     
     char namebuf[NAME_TAG_SIZE];
     memset( namebuf, '\0', NAME_TAG_SIZE );
-    strncpy( namebuf, name.c_str(), NAME_TAG_SIZE - 1 );
-    if (name.length() >= (unsigned)NAME_TAG_SIZE) 
-      std::cout << "WARNING: group name '" << name.c_str() 
+    strncpy( namebuf, name1.c_str(), NAME_TAG_SIZE - 1 );
+    if (name1.length() >= (unsigned)NAME_TAG_SIZE)
+      std::cout << "WARNING: group name '" << name1.c_str()
                 << "' truncated to '" << namebuf << "'" << std::endl;
     rval = mdbImpl->tag_set_data( name_tag, &h, 1, namebuf );
     if (MB_SUCCESS != rval)
@@ -367,11 +367,11 @@
       }
         
       for (int j = 0; j < name_list.size(); ++j) {
-        name = *name_list.get_and_step();
+        name1 = *name_list.get_and_step();
         memset( namebuf, '\0', NAME_TAG_SIZE );


More information about the moab-dev mailing list