From 810524fbee7a4f03ae8551265538fbd201b4472b Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Thu, 1 Sep 2016 19:04:09 +0300 Subject: [PATCH] Fixed unused parameters warnings --- include/boost/random/discrete_distribution.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }