[MOAB-dev] r5246 - MOAB/trunk/test
jvporter at wisc.edu
jvporter at wisc.edu
Thu Dec 8 14:00:09 CST 2011
Author: jvporter
Date: 2011-12-08 14:00:09 -0600 (Thu, 08 Dec 2011)
New Revision: 5246
Modified:
MOAB/trunk/test/TagTest.cpp
Log:
Eliminate some warnings
Modified: MOAB/trunk/test/TagTest.cpp
===================================================================
--- MOAB/trunk/test/TagTest.cpp 2011-12-08 19:40:25 UTC (rev 5245)
+++ MOAB/trunk/test/TagTest.cpp 2011-12-08 20:00:09 UTC (rev 5246)
@@ -187,7 +187,7 @@
int bytes;
rval = mb.tag_get_bytes( tag, bytes );
CHECK_ERR(rval);
- int exp_bytes;
+ int exp_bytes = 0;
switch (type) {
case MB_TYPE_INTEGER: exp_bytes = num_vals * sizeof(int); break;
case MB_TYPE_DOUBLE: exp_bytes = num_vals * sizeof(double); break;
@@ -375,7 +375,7 @@
CHECK_ERR(rval);
CHECK( !entities.empty() );
- int bytes;
+ int bytes = 0;
switch (type) {
case MB_TYPE_INTEGER: bytes = vals_per_ent*sizeof(int); break;
case MB_TYPE_DOUBLE : bytes = vals_per_ent*sizeof(double); break;
@@ -1553,7 +1553,7 @@
CHECK_EQUAL( lengths[0], data_len );
CHECK( !memcmp( values[0], data_ptr, data_len ) );
- int typesize;
+ int typesize = 0;
switch (type) {
case MB_TYPE_INTEGER: typesize = sizeof(int); break;
case MB_TYPE_DOUBLE: typesize = sizeof(double); break;
More information about the moab-dev
mailing list