-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
QO 2021-10-04
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/document_source_densify.h:81: UNUSED_VALUE 120434 Overwriting previous write to "*&<temporary>" with value from "mongo::RangeStatement::serialize() const::[lambda(std::pair<mongo::Date_t, mongo::Date_t>) (instance 1)]()".
/src/mongo/db/pipeline/document_source_densify.h:80: UNUSED_VALUE 120434 Assigning value from "mongo::RangeStatement::serialize() const::[lambda(mongo::RangeStatement::Partition) (instance 1)]()" to "*&<temporary>" here, but that stored value is overwritten before it can be used.
- is related to
-
SERVER-59466 Coverity analysis defect 120435: Uninitialized scalar field
- Closed
-
SERVER-59468 Coverity analysis defect 120437: Missing break in switch
- Closed