Coverity Quality Issue 185005: Logically dead code

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Coverity found a Quality issue: Logically dead code

      Details:

      Coverity Issue ID: 185005
      Issue Description: Code can never be reached because of a logical contradiction
      Potential Impact: The indicated dead code may have performed some action; that action will never occur.
      Coverity checker: DEADCODE
      Branch: master
      File path: /src/mongo/bson/util/builder.h
      Line number: Unknown

      What Coverity Detected (Main Finding)

      Execution cannot reach this statement: "*this << '-';".

      The issue can be viewed in Coverity here.

      How do I fix this?

      Refer to https://wiki.corp.mongodb.com/spaces/HGTC/pages/385852267/Guidance+on+fixing+Coverity+issues for guidance on fixing Coverity issues.

            Assignee:
            Unassigned
            Reporter:
            kondukto-svc@mongodb.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: