From ba65fd4da0e2211dc8934af85a5c381ce61b71b0 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Mon, 17 Jul 2023 20:30:13 +0200 Subject: [PATCH] Don't give unused arguments a name. (#808) --- include/highfive/bits/H5Converter_misc.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/highfive/bits/H5Converter_misc.hpp b/include/highfive/bits/H5Converter_misc.hpp index 27c822e05..7b0c97524 100644 --- a/include/highfive/bits/H5Converter_misc.hpp +++ b/include/highfive/bits/H5Converter_misc.hpp @@ -40,7 +40,7 @@ struct ShallowCopyBuffer { return ptr; } - void unserialize(T& val) const { + void unserialize(T& /* val */) const { /* nothing to do. */ } @@ -84,13 +84,13 @@ struct Writer::type>: public ShallowCopyBuffe using super = ShallowCopyBuffer; public: - explicit Writer(const T& val, const DataType& file_datatype) + explicit Writer(const T& val, const DataType& /* file_datatype */) : super(val){}; }; template struct Writer::type>: public DeepCopyBuffer { - explicit Writer(const T& val, const DataType& file_datatype) + explicit Writer(const T& val, const DataType& /* file_datatype */) : DeepCopyBuffer(inspector::getDimensions(val)) { inspector::serialize(val, this->get_pointer()); } @@ -106,7 +106,7 @@ struct Reader::type>: public ShallowCopyBuffe using type = typename super::type; public: - Reader(const std::vector&, type& val, const DataType&) + Reader(const std::vector&, type& val, const DataType& /* file_datatype */) : super(val) {} }; @@ -117,7 +117,7 @@ struct Reader::type>: public DeepCopyBuffer { using type = typename super::type; public: - Reader(const std::vector& _dims, type&, const DataType&) + Reader(const std::vector& _dims, type&, const DataType& /* file_datatype */) : super(_dims) {} };