src/mongo/util/summation.cpp:55:40: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] if (_sum > limits::min() && _sum < limits::max()) ~ ^~~~~~~~~~~~~ src/mongo/util/summation.cpp:64:17: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] if (_sum == limits::max()) ~~ ^~~~~~~~~~~~~ src/mongo/util/summation.cpp:81:17: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] if (_sum == std::numeric_limits<long long>::max()) { ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- is depended on by
-
SERVER-59233 Fix or suppress warnings when building with latest stable GCC and clang in C++17 mode
- Closed
- is related to
-
SERVER-46071 Server parameters with AtomicWord<int> do not handle out of bound values gracefully
- Closed
-
SERVER-48076 implicit conversion from 'long long' to 'double' in oplog_stone_parameters_gen.cpp
- Closed
- related to
-
SERVER-57633 Remove disable warnings as error for xcode 12.4 builder
- Closed