diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-15 06:49:20 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-03-15 06:49:20 (GMT) |
commit | 3b90bca5610a4d31f3a3b10c08b77d11ed36c457 (patch) | |
tree | 850d19724f17349ab3cba83c2321124f7ccb28b9 /c++/test/tobject.cpp | |
parent | a382658282915afb7c288ef80b4d583a8ecc94fb (diff) | |
download | hdf5-3b90bca5610a4d31f3a3b10c08b77d11ed36c457.zip hdf5-3b90bca5610a4d31f3a3b10c08b77d11ed36c457.tar.gz hdf5-3b90bca5610a4d31f3a3b10c08b77d11ed36c457.tar.bz2 |
[svn-r26458] Purpose: Fix warnings HDFFV-8658
Description:
Fixed many type conversion warnings and unused variables.
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 |