summaryrefslogtreecommitdiff
path: root/boost/random/discrete_distribution.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/random/discrete_distribution.hpp')
-rw-r--r--boost/random/discrete_distribution.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/random/discrete_distribution.hpp b/boost/random/discrete_distribution.hpp
index 3d14d4a02c..9574cbcae5 100644
--- a/boost/random/discrete_distribution.hpp
+++ b/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<WeightType>& weights)
+ static WeightType try_get_sum(const std::vector<WeightType>& /* weights */)
{
return static_cast<WeightType>(1);
}