Skip to content

Commit

Permalink
Merge pull request #40 from Romain-Geissler-1A/unused-arguments
Browse files Browse the repository at this point in the history
Fix some clang unused arguments warnings.
  • Loading branch information
pdimov committed Aug 25, 2023
2 parents 5c47eca + cc01a26 commit cca88c9
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions include/boost/accumulators/statistics/count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & cnt;
}

Expand Down
4 changes: 2 additions & 2 deletions include/boost/accumulators/statistics/max.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & max_;
}

Expand Down
6 changes: 3 additions & 3 deletions include/boost/accumulators/statistics/mean.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace impl

// serialization is done by accumulators it depends on
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version) {}
void serialize(Archive & /* ar */, const unsigned int /* file_version */) {}
};

template<typename Sample, typename Tag>
Expand Down Expand Up @@ -76,8 +76,8 @@ namespace impl
}

template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & mean;
}

Expand Down
4 changes: 2 additions & 2 deletions include/boost/accumulators/statistics/min.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & min_;
}

Expand Down
4 changes: 2 additions & 2 deletions include/boost/accumulators/statistics/moment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & sum;
}

Expand Down
4 changes: 2 additions & 2 deletions include/boost/accumulators/statistics/sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ namespace impl
}

template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & sum;
}

Expand Down
6 changes: 3 additions & 3 deletions include/boost/accumulators/statistics/variance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace impl

// serialization is done by accumulators it depends on
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version) {}
void serialize(Archive & /* ar */, const unsigned int /* file_version */) {}
};

//! Iterative calculation of variance.
Expand Down Expand Up @@ -119,8 +119,8 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & variance;
}

Expand Down
2 changes: 1 addition & 1 deletion include/boost/accumulators/statistics/weighted_mean.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & mean;
}
Expand Down
2 changes: 1 addition & 1 deletion include/boost/accumulators/statistics/weighted_sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace impl

// make this accumulator serializeable
template<class Archive>
void serialize(Archive & ar, const unsigned int file_version)
void serialize(Archive & ar, const unsigned int /* file_version */)
{
ar & weighted_sum_;
}
Expand Down

0 comments on commit cca88c9

Please sign in to comment.