summaryrefslogtreecommitdiffstats
path: root/hl/c++/test/ptableTest.cpp
diff options
context:
space:
mode:
authorvchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>2021-06-11 21:21:50 (GMT)
committerGitHub <noreply@github.com>2021-06-11 21:21:50 (GMT)
commit0ba96f793fbce7b4d8a6b237c1a3483910f26fe3 (patch)
treecc10a932e13d77c50495e0bd18a831caf0b8c504 /hl/c++/test/ptableTest.cpp
parentfe0fffdae25a1ba21d9fe493ff6773babccac479 (diff)
parent0803dbcd39c0f53f96b00b3439b8a870d1fa9929 (diff)
downloadhdf5-0ba96f793fbce7b4d8a6b237c1a3483910f26fe3.zip
hdf5-0ba96f793fbce7b4d8a6b237c1a3483910f26fe3.tar.gz
hdf5-0ba96f793fbce7b4d8a6b237c1a3483910f26fe3.tar.bz2
Merge pull request #23 from vchoi-hdfgroup/feature/vfd_swmr
Feature/vfd swmr
Diffstat (limited to 'hl/c++/test/ptableTest.cpp')
-rw-r--r--hl/c++/test/ptableTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp
index 2600367..6deb24d 100644
--- a/hl/c++/test/ptableTest.cpp
+++ b/hl/c++/test/ptableTest.cpp
@@ -307,7 +307,7 @@ TestCompress()
if (HDstrncmp(filter_name, "deflate", 7) != 0)
H5_FAILED()
}
- catch (Exception e) {
+ catch (Exception const &) {
H5_FAILED();
return 1;
}
@@ -605,8 +605,8 @@ const int STRING_LENGTH = 19; // including terminating NULL
int
TestHDFFV_9758()
{
- hid_t strtype;
- hid_t compound_type;
+ hid_t strtype = H5I_INVALID_HID;
+ hid_t compound_type = H5I_INVALID_HID;
herr_t err;
struct s1_t {
int a;
@@ -620,9 +620,9 @@ TestHDFFV_9758()
for (hsize_t i = 0; i < NUM_PACKETS; i++) {
s1[i].a = static_cast<int>(i);
- s1[i].b = 1.f * static_cast<float>(i * i);
- s1[i].c = 1. / (i + 1);
- HDsprintf(s1[i].d, "string%d", (int)i);
+ s1[i].b = 1.0f * static_cast<float>(i * i);
+ s1[i].c = 1.0 / static_cast<double>(i + 1);
+ HDsprintf(s1[i].d, "string%" PRIuHSIZE "", i);
s1[i].e = static_cast<int>(100 + i);
}