diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-04 07:47:49 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-04 07:47:49 (GMT) |
commit | 2c3ab210575979b29c6f7cfb83c3252f3dcd415a (patch) | |
tree | 6be2d48898f963a3c61ce240bbbaa510410b4f03 /c++/test/tobject.cpp | |
parent | 943993af8357c963d4da4141e7e68f5eaa59e21a (diff) | |
download | hdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.zip hdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.tar.gz hdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.tar.bz2 |
[svn-r26727] Purpose: Fix warnings HDFFV-8658 cont.
Description:
Fixed many type conversion warnings and unused variables.
Merged from trunk r26458, but also combined the fix in r26695 (dsets.cpp)
to avoid test failure, that was undetected before committing to trunk until
r26695.
Platforms tested:
Linux/64 (platypus)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/test/tobject.cpp')
-rw-r--r-- | c++/test/tobject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c++/test/tobject.cpp b/c++/test/tobject.cpp index b86d7cb..c74d34a 100644 --- a/c++/test/tobject.cpp +++ b/c++/test/tobject.cpp @@ -181,6 +181,8 @@ static void test_get_objname_ontypes() Group grp = file.createGroup ("typetests"); // Create a datatype and save it + IntType inttype(PredType::STD_B8LE); + DataType dtype(PredType::STD_B8LE); dtype.commit(file, "STD_B8LE"); @@ -201,6 +203,7 @@ static void test_get_objname_ontypes() // Name this datatype new_int_type.commit(grp, "IntType NATIVE_INT"); ssize_t name_len = new_int_type.getObjName(type_name); // default len + verify_val(name_len, (ssize_t)HDstrlen("/typetests/IntType NATIVE_INT"), "DataSet::getObjName", __LINE__, __FILE__); verify_val(type_name, "/typetests/IntType NATIVE_INT", "DataSet::getObjName", __LINE__, __FILE__); // Close everything or they can be closed when objects go out of scope @@ -208,7 +211,6 @@ static void test_get_objname_ontypes() copied_type.close(); new_int_type.close(); grp.close(); - file.close(); PASSED(); } // end top try block |