[MOAB-dev] r5286 - in MOAB/trunk/src: . io
jvporter at wisc.edu
jvporter at wisc.edu
Thu Jan 5 13:10:16 CST 2012
Author: jvporter
Date: 2012-01-05 13:10:16 -0600 (Thu, 05 Jan 2012)
New Revision: 5286
Modified:
MOAB/trunk/src/SetIterator.cpp
MOAB/trunk/src/SmoothCurve.cpp
MOAB/trunk/src/SparseTag.cpp
MOAB/trunk/src/WriteUtil.cpp
MOAB/trunk/src/io/ReadNC.cpp
Log:
Eliminate some warnings
Modified: MOAB/trunk/src/SetIterator.cpp
===================================================================
--- MOAB/trunk/src/SetIterator.cpp 2012-01-05 18:16:12 UTC (rev 5285)
+++ MOAB/trunk/src/SetIterator.cpp 2012-01-05 19:10:16 UTC (rev 5286)
@@ -27,6 +27,9 @@
// special case for the root set, have to keep a local array
ErrorCode rval = build_pair_vec();
assert(MB_SUCCESS == rval);
+
+ // empty statement to avoid warning
+ (void)(rval);
}
}
Modified: MOAB/trunk/src/SmoothCurve.cpp
===================================================================
--- MOAB/trunk/src/SmoothCurve.cpp 2012-01-05 18:16:12 UTC (rev 5285)
+++ MOAB/trunk/src/SmoothCurve.cpp 2012-01-05 19:10:16 UTC (rev 5286)
@@ -202,7 +202,7 @@
}
// find the closest node, then find the closest edge, based on closest node
- int indexNode;
+ int indexNode = 0;
double minDist = 1.e30;
// expensive linear search
for (int i=0; i<numNodes; i++)
Modified: MOAB/trunk/src/SparseTag.cpp
===================================================================
--- MOAB/trunk/src/SparseTag.cpp 2012-01-05 18:16:12 UTC (rev 5285)
+++ MOAB/trunk/src/SparseTag.cpp 2012-01-05 19:10:16 UTC (rev 5286)
@@ -354,7 +354,7 @@
return rval;
// get pointer to tag storage for entity pointed to by iter
- const void* ptr;
+ const void* ptr = NULL;
rval = get_data_ptr( 0, *iter, ptr );
if (MB_SUCCESS == rval)
data_ptr = const_cast<void*>(ptr);
Modified: MOAB/trunk/src/WriteUtil.cpp
===================================================================
--- MOAB/trunk/src/WriteUtil.cpp 2012-01-05 18:16:12 UTC (rev 5285)
+++ MOAB/trunk/src/WriteUtil.cpp 2012-01-05 19:10:16 UTC (rev 5286)
@@ -921,7 +921,7 @@
{
SequenceManager *sm = mMB->sequence_manager();
const EntitySequence *tmp_seq;
More information about the moab-dev
mailing list