Coverity analysis defect 120434: Unused value

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • QO 2021-10-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Ted Tuckman
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: