Coverity analysis defect 114418: Unused value

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Execution Team 2020-09-07
    • 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/storage/key_string.cpp:2439: UNUSED_VALUE 114418 Overwriting previous write to "ctype" with value from "mongo::KeyString::<unnamed>::readType(&reader, false)".
      /src/mongo/db/storage/key_string.cpp:2438: UNUSED_VALUE 114418 Assigning value from "~ctype" to "ctype" here, but that stored value is overwritten before it can be used.

              Assignee:
              Vishnu Kaushik
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: