diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-09 04:03:03 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-09 04:03:03 (GMT) |
commit | 0dc4ce37046c373ca48ed5d186e3598d7b48ed35 (patch) | |
tree | 205b77bbf5f08909ec4ac2aad5164bd49e6b674e /c++/test/dsets.cpp | |
parent | 5ae7ad342d42a9d6384edc3e465f57fa35ada5de (diff) | |
download | hdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.zip hdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.tar.gz hdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.tar.bz2 |
[svn-r24994] Purpose: Removed some warnings
Description:
Turned on warnings and removed some of those.
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/test/dsets.cpp')
-rw-r--r-- | c++/test/dsets.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp index 6824403..d1ced1d 100644 --- a/c++/test/dsets.cpp +++ b/c++/test/dsets.cpp @@ -312,10 +312,14 @@ test_datasize(FileAccPropList &fapl) // Get the dimension sizes. hsize_t dims[2]; int n_dims = space.getSimpleExtentDims(dims); + if (n_dims < 0) + { + throw Exception("test_compression", "DataSpace::getSimpleExtentDims() failed"); + } // Calculate the supposed size. Size of each value is int (4), from // test_simple_io. - int expected_size = 4 * dims[0] * dims[1]; + size_t expected_size = 4 * dims[0] * dims[1]; // getInMemDataSize() returns the in memory size of the data. size_t ds_size = dset.getInMemDataSize(); |