Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59465

Coverity analysis defect 120434: Unused value

    • 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.

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: