diff --git a/include/boost/random/discrete_distribution.hpp b/include/boost/random/discrete_distribution.hpp index 3d14d4a02c..4b98beebd1 100644 --- a/include/boost/random/discrete_distribution.hpp +++ b/include/boost/random/discrete_distribution.hpp @@ -92,7 +92,7 @@ struct integer_alias_table { return _alias_table == other._alias_table && _average == other._average && _excess == other._excess; } - static WeightType normalize(WeightType val, WeightType average) + static WeightType normalize(WeightType val, WeightType /*average*/) { return val; } @@ -183,7 +183,7 @@ struct real_alias_table { { return true; } - static WeightType try_get_sum(const std::vector& weights) + static WeightType try_get_sum(const std::vector& /*weights*/) { return static_cast(1); }