Skip to content

Commit

Permalink
Fix linter and compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Jan 23, 2025
1 parent a496583 commit 0cb0575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/io/hdf5/HDF5IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ HDF5IO::getStorageObjects(const std::string& path,
if (objectType == StorageObjectType::Attribute
|| objectType == StorageObjectType::Undefined)
{
SizeType numAttrs = group.getNumAttrs();
for (SizeType i = 0; i < numAttrs; ++i) {
unsigned int numAttrs = static_cast<unsigned int>(group.getNumAttrs());
for (unsigned int i = 0; i < numAttrs; ++i) {
H5::Attribute attr = group.openAttribute(i);
objects.emplace_back(attr.getName(), StorageObjectType::Attribute);
}
Expand All @@ -1036,8 +1036,8 @@ HDF5IO::getStorageObjects(const std::string& path,
|| objectType == StorageObjectType::Undefined)
{
H5::DataSet dataset = m_file->openDataSet(path);
SizeType numAttrs = dataset.getNumAttrs();
for (SizeType i = 0; i < numAttrs; ++i) {
unsigned int numAttrs = static_cast<unsigned int>(dataset.getNumAttrs());
for (unsigned int i = 0; i < numAttrs; ++i) {
H5::Attribute attr = dataset.openAttribute(i);
objects.emplace_back(attr.getName(), StorageObjectType::Attribute);
}
Expand Down
2 changes: 1 addition & 1 deletion src/nwb/NWBFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class NWBFile : public Container
const IO::BaseDataType& dataType = IO::BaseDataType::I16,
RecordingContainers* recordingContainers = nullptr,
std::vector<SizeType>& containerIndexes = emptyContainerIndexes);

/** @brief Create AnnotationSeries objects to record data into.
* Created objects are stored in recordingContainers.
* @param recordingNames vector indicating the names of the AnnotationSeries
Expand Down

0 comments on commit 0cb0575

Please sign in to comment.