[MOAB-dev] r4175 - in MOAB/trunk/src: . io

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Sep 28 09:55:14 CDT 2010


Author: kraftche
Date: 2010-09-28 09:55:14 -0500 (Tue, 28 Sep 2010)
New Revision: 4175

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
   MOAB/trunk/src/io/ReadHDF5Dataset.cpp
   MOAB/trunk/src/io/ReadHDF5Dataset.hpp
   MOAB/trunk/src/moab_mpe.h
Log:
fix some warnings

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2010-09-28 14:54:54 UTC (rev 4174)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2010-09-28 14:55:14 UTC (rev 4175)
@@ -304,8 +304,8 @@
     }
       // Broadcast the size of the struct (zero indicates an error)
     dbgOut.tprint( 1, "Communicating file summary\n" );
-    int err = MPI_Bcast( &size, 1, MPI_UNSIGNED_LONG, 0, myPcomm->proc_config().proc_comm() );
-    if (err || !size)
+    int mpi_err = MPI_Bcast( &size, 1, MPI_UNSIGNED_LONG, 0, myPcomm->proc_config().proc_comm() );
+    if (mpi_err || !size)
       return MB_FAILURE;
     
       // allocate structure
@@ -1150,7 +1150,7 @@
       }
     }
   }
-  catch (ReadHDF5Dataset::Exception e) {
+  catch (ReadHDF5Dataset::Exception) {
     mhdf_closeData( filePtr, data_id, &status );
     return error(MB_FAILURE);
   }
@@ -1176,7 +1176,7 @@
       coffset += count;
     }
   }
-  catch (ReadHDF5Dataset::Exception e) {
+  catch (ReadHDF5Dataset::Exception) {
     return error(MB_FAILURE);
   }
 #endif
@@ -1248,7 +1248,7 @@
     }
     assert(iter - array == (ptrdiff_t)count * nodes_per_elem);
   }
-  catch (ReadHDF5Dataset::Exception e) {
+  catch (ReadHDF5Dataset::Exception) {
     return error(MB_FAILURE);
   }
   
@@ -1412,7 +1412,7 @@
       copy_sorted_file_ids( buffer, num_read, nodes );
     }
   } 
-  catch (ReadHDF5Dataset::Exception e) {
+  catch (ReadHDF5Dataset::Exception) {
     return error(MB_FAILURE);
   }
   


More information about the moab-dev mailing list