-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Query Integration
-
ALL
Unused value
An assigned value that is never used may represent unnecessary computation, an incorrect algorithm, or possibly the need for cleanup or refactoring. A value assigned to a variable is never used.
/src/mongo/db/pipeline/window_function/window_bounds.cpp:72: UNUSED_VALUE 170240 Overwriting previous write to "*<temporary>" with value from "mongo::Value mongo::<unnamed>::serializeBound<int>(mpark::variant<mongo::WindowBounds::Unbounded, mongo::WindowBounds::Current, int> const &, mongo::SerializationOptions const &, mongo::Value const &)::[lambda(mongo::WindowBounds::Current const &) (instance 1)]()".
/src/mongo/db/pipeline/window_function/window_bounds.cpp:71: UNUSED_VALUE 170240 Assigning value from "mongo::Value mongo::<unnamed>::serializeBound<int>(mpark::variant<mongo::WindowBounds::Unbounded, mongo::WindowBounds::Current, int> const &, mongo::SerializationOptions const &, mongo::Value const &)::[lambda(mongo::WindowBounds::Unbounded const &) (instance 1)]()" to "*<temporary>" here, but that stored value is overwritten before it can be used.