fix warning (for -Wextra)

This commit is contained in:
bolero-MURAKAMI 2013-07-22 22:00:09 +09:00
parent 49243e6c94
commit 57e35349e5
146 changed files with 459 additions and 499 deletions

View file

@ -45,8 +45,7 @@ namespace sprout {
FloatType number = FloatType(),
std::size_t num_digits = 0,
std::size_t num_decimals = 0,
long exponent = 0,
long n = 0
long exponent = 0
)
{
return exponent >= std::numeric_limits<FloatType>::min_exponent
@ -91,8 +90,7 @@ namespace sprout {
number,
num_digits,
num_decimals,
negative ? exponent + n : exponent - n,
n
negative ? exponent + n : exponent - n
)
;
}
@ -259,7 +257,7 @@ namespace sprout {
std::is_floating_point<FloatType>::value,
FloatType
>::type
str_to_float(Char const* str, std::nullptr_t endptr) {
str_to_float(Char const* str, std::nullptr_t) {
return sprout::detail::str_to_float<FloatType>(str);
}