Skip to content

Commit

Permalink
Don't give unused arguments a name.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Jul 17, 2023
1 parent 528e6fe commit f5f845f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/highfive/bits/H5Converter_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct ShallowCopyBuffer {
return ptr;
}

void unserialize(T& val) const {
void unserialize(T& /* val */) const {
/* nothing to do. */
}

Expand Down Expand Up @@ -84,13 +84,13 @@ struct Writer<T, typename enable_shallow_copy<T>::type>: public ShallowCopyBuffe
using super = ShallowCopyBuffer<T, true>;

public:
explicit Writer(const T& val, const DataType& file_datatype)
explicit Writer(const T& val, const DataType& /* file_datatype */)
: super(val){};
};

template <typename T>
struct Writer<T, typename enable_deep_copy<T>::type>: public DeepCopyBuffer<T> {
explicit Writer(const T& val, const DataType& file_datatype)
explicit Writer(const T& val, const DataType& /* file_datatype */)
: DeepCopyBuffer<T>(inspector<T>::getDimensions(val)) {
inspector<T>::serialize(val, this->get_pointer());
}
Expand All @@ -106,7 +106,7 @@ struct Reader<T, typename enable_shallow_copy<T>::type>: public ShallowCopyBuffe
using type = typename super::type;

public:
Reader(const std::vector<size_t>&, type& val, const DataType&)
Reader(const std::vector<size_t>&, type& val, const DataType& /* file_datatype */)
: super(val) {}
};

Expand All @@ -117,7 +117,7 @@ struct Reader<T, typename enable_deep_copy<T>::type>: public DeepCopyBuffer<T> {
using type = typename super::type;

public:
Reader(const std::vector<size_t>& _dims, type&, const DataType&)
Reader(const std::vector<size_t>& _dims, type&, const DataType& /* file_datatype */)
: super(_dims) {}
};

Expand Down

0 comments on commit f5f845f

Please sign in to comment.