src/mongo/bson/bsonelement.h:1021:22: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-
Werror,-Wimplicit-int-float-conversion]
if ((d > std::numeric_limits<T>::max()) || (d < std::numeric_limits<T>::lowest())) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongo/idl/server_parameter_with_storage.h:251:43: note: in instantiation of function template specialization 'mongo::BSONElement::tryCoerce<long long>' re
quested here
if (auto status = newValueElement.tryCoerce(&newValue); !status.isOK()) {
^
src/mongo/idl/server_parameter_with_storage.h:192:5: note: in instantiation of member function 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterTyp
e::kStartupOnly, long long>::set' requested here
IDLServerParameterWithStorage(StringData name, T& storage)
^
src/mongo/idl/server_parameter_with_storage.h:326:16: note: in instantiation of member function 'mongo::IDLServerParameterWithStorage<mongo::ServerParameterTy
pe::kStartupOnly, long long>::IDLServerParameterWithStorage' requested here
return new IDLServerParameterWithStorage<paramType, T>(name, storage);
^
build/opt/mongo/db/storage/wiredtiger/oplog_stone_parameters_gen.cpp:32:21: note: in instantiation of function template specialization 'mongo::makeIDLServerPa
rameterWithStorage<mongo::ServerParameterType::kStartupOnly, long long>' requested here
auto* ret = makeIDLServerParameterWithStorage<ServerParameterType::kStartupOnly>("maxOplogTruncationPointsAfterStartup", gMaxOplogStonesAfterStartup);
- 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
- related to
-
SERVER-48079 implicit conversion from 'long long' to 'double' in summation.cpp
- Closed
-
SERVER-60199 Coverity analysis defect 120812: Redundant test
- Closed
-
SERVER-57633 Remove disable warnings as error for xcode 12.4 builder
- Closed