[MOAB-dev] r4895 - MOAB/trunk/src/parallel

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue May 31 11:17:55 CDT 2011


Author: tautges
Date: 2011-05-31 11:17:55 -0500 (Tue, 31 May 2011)
New Revision: 4895

Modified:
   MOAB/trunk/src/parallel/ParallelComm.cpp
Log:
Getting rid of some compiler warnings.



Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp	2011-05-31 15:32:11 UTC (rev 4894)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp	2011-05-31 16:17:55 UTC (rev 4895)
@@ -2518,7 +2518,7 @@
     result = mbImpl->tag_get_data(uid_tag, all_sets, &id_data[0]);
     if (MB_TAG_NOT_FOUND != result) {
       RRA("Trouble getting parallel geometry unique ids.");
-      for (int i = 0; i < n_sets; i++) {
+      for (i = 0; i < n_sets; i++) {
         if (id_data[i] != 0) {
           b_pack = true;
           break;
@@ -2673,7 +2673,7 @@
     }
 
     // find existing sets
-    for (int i = 0; i < n_uid; i++) {
+    for (i = 0; i < n_uid; i++) {
       EntityHandle set_handle;
       Range temp_sets;
       void* tag_vals[] = { &uids[i] };
@@ -3018,7 +3018,7 @@
 
 ErrorCode ParallelComm::unpack_tags(unsigned char *&buff_ptr,
                                     std::vector<EntityHandle> &entities,
-                                        const bool store_remote_handles,
+                                    const bool /*store_remote_handles*/,
                                     const int /*from_proc*/)
 {
     // tags
@@ -5332,7 +5332,8 @@
     msgs.clear();
     msgs.reserve(MAX_SHARING_PROCS);
   }
-  int i, ind, success;
+  unsigned int i;
+  int ind, success;
   ErrorCode result = MB_SUCCESS;
   int incoming1 = 0, incoming2 = 0;
 
@@ -5341,7 +5342,7 @@
   buffProcs.clear();
 
   // set buffProcs with communicating procs
-  int n_proc = exchange_procs.size();
+  unsigned int n_proc = exchange_procs.size();
   for (i = 0; i < n_proc; i++) {
     ind = get_buffers(exchange_procs[i]);
     result = add_verts(*exchange_ents[i]);
@@ -5516,7 +5517,7 @@


More information about the moab-dev mailing list