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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon May 17 15:57:48 CDT 2010


Author: kraftche
Date: 2010-05-17 15:57:48 -0500 (Mon, 17 May 2010)
New Revision: 3913

Modified:
   MOAB/trunk/src/io/WriteHDF5.hpp
   MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
   MOAB/trunk/src/parallel/moab/ParallelComm.hpp
Log:
fix some warnings

Modified: MOAB/trunk/src/io/WriteHDF5.hpp
===================================================================
--- MOAB/trunk/src/io/WriteHDF5.hpp	2010-05-17 20:50:30 UTC (rev 3912)
+++ MOAB/trunk/src/io/WriteHDF5.hpp	2010-05-17 20:57:48 UTC (rev 3913)
@@ -114,11 +114,6 @@
     { return MB_SUCCESS;}
   virtual ErrorCode write_finished();
   virtual void debug_barrier_line(int lineno);
-#ifdef __GNUC__
-__attribute__((format(printf,2,3)))
-#endif
-  ;
-
  
   //! Gather tags
   ErrorCode gather_tags( const Tag* user_tag_list, int user_tag_list_length );

Modified: MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
===================================================================
--- MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2010-05-17 20:50:30 UTC (rev 3912)
+++ MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp	2010-05-17 20:57:48 UTC (rev 3913)
@@ -126,7 +126,7 @@
   const char* typenames[] = {"Block ", "Sideset ", "NodeSet", "Vertex", "Curve", "Surface", "Volume", "Body", "Other"};
   for (Range::iterator riter = sets.begin(); riter != sets.end(); ++riter)
   {
-    unsigned dim, id, oldsize;
+    unsigned dim, id ; //, oldsize;
     if (MB_SUCCESS == iFace->tag_get_data(bid, &*riter, 1, &id)) 
       dim = 0;
     else if (MB_SUCCESS == iFace->tag_get_data(sid, &*riter, 1, &id))
@@ -143,7 +143,7 @@
       dim = 9;
     }
 
-    oldsize = typesets[dim].size();
+    //oldsize = typesets[dim].size();
     typesets[dim].insert( id );
 //    assert( typesets[dim].size() - oldsize == 1 );  
   }
@@ -704,7 +704,7 @@
     for (tag_iter = tagList.begin(); tag_iter != tagList.end(); ++tag_iter) {
       std::string name;
       iFace->tag_get_name( tag_iter->tag_id, name );
-      dbgOut.printf(2,"%18s %8lu %8lu %8lu %8ld 0x%7lx\n", name.c_str(), 
+      dbgOut.printf(2,"%18s %8lu %8lu %8lu %8lu 0x%7lx\n", name.c_str(), 
         (unsigned long)tag_iter->range.size(), 
         (unsigned long)tag_iter->offset,
         (unsigned long)tag_iter->varDataOffset,

Modified: MOAB/trunk/src/parallel/moab/ParallelComm.hpp
===================================================================


More information about the moab-dev mailing list