Skip to content

Commit

Permalink
Remove unused variable that causes lots of compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Aug 28, 2022
1 parent a2e8332 commit 5379781
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/H5Support/H5Lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,6 @@ inline hsize_t getNumberOfElements(hid_t locationID, const std::string& datasetN

hid_t datasetID;
herr_t error = 0;
herr_t returnError = 0;
hid_t dataspaceID;
hsize_t numElements = 0;
datasetID = H5Dopen(locationID, datasetName.c_str(), H5P_DEFAULT);
Expand All @@ -1530,19 +1529,16 @@ inline hsize_t getNumberOfElements(hid_t locationID, const std::string& datasetN
if(error < 0)
{
std::cout << "Error Closing Data Space" << std::endl;
returnError = error;
}
}
else
{
std::cout << "Error Opening SpaceID" << std::endl;
// returnError = dataspaceID;
}
error = H5Dclose(datasetID);
if(error < 0)
{
std::cout << "Error Closing Dataset" << std::endl;
returnError = error;
}
}
return numElements;
Expand Down

0 comments on commit 5379781

Please sign in to comment.