diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-04-28 13:10:57 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-04-28 13:11:08 (GMT) |
commit | 14559ac4bd689a3b63ea578da617821e89e6427f (patch) | |
tree | 5fa943249fb03fa562030c9b6d8b991f0f022fe4 /c++/src | |
parent | 159c4ded7b430a24f3bd25aa9abaee67e0183886 (diff) | |
download | hdf5-14559ac4bd689a3b63ea578da617821e89e6427f.zip hdf5-14559ac4bd689a3b63ea578da617821e89e6427f.tar.gz hdf5-14559ac4bd689a3b63ea578da617821e89e6427f.tar.bz2 |
Correct -Werror=unused-variable
Diffstat (limited to 'c++/src')
-rw-r--r-- | c++/src/H5Library.cpp | 2 | ||||
-rw-r--r-- | c++/src/H5Location.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Library.cpp b/c++/src/H5Library.cpp index 3813b79..6cf89ae 100644 --- a/c++/src/H5Library.cpp +++ b/c++/src/H5Library.cpp @@ -82,7 +82,7 @@ void H5Library::close() //-------------------------------------------------------------------------- void H5Library::dontAtExit() { - herr_t ret_value = H5dont_atexit(); + (void)H5dont_atexit(); } //-------------------------------------------------------------------------- diff --git a/c++/src/H5Location.cpp b/c++/src/H5Location.cpp index c62437c..d95b39e 100644 --- a/c++/src/H5Location.cpp +++ b/c++/src/H5Location.cpp @@ -1068,7 +1068,7 @@ void H5Location::link(const char *curr_name, const H5Location& new_loc, hid_t lcpl_id = lcpl.getId(); hid_t lapl_id = lapl.getId(); - ret_value = H5Lcreate_hard(getId(), curr_name, new_loc.getId(), new_name, lcpl_id, lapl_id); + ret_value = H5Lcreate_hard(getId(), curr_name, new_loc_id, new_name, lcpl_id, lapl_id); if (ret_value < 0) throwException("link", "creating link failed"); } |