Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13135

Coverity analysis defect 156361: Logically dead code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Test wtperf
    • None
    • Storage Engines

      Logically dead code

      The indicated dead code may have performed some action; that action will never occur. Code can never be reached because of a logical contradiction
      /bench/wtperf/wtperf.c:1357: DEADCODE 156361 Condition "first", taking false branch. Now the value of "first" is equal to 0.
      /bench/wtperf/wtperf.c:1360: DEADCODE 156361 Assigning: "first" = "false".
      /bench/wtperf/wtperf.c:1369: DEADCODE 156361 At condition "first", the value of "first" must be equal to 0.
      /bench/wtperf/wtperf.c:1368: DEADCODE 156361 The condition "first" cannot be true.
      /bench/wtperf/wtperf.c:1368: DEADCODE 156361 Execution cannot reach the expression ""Full"" inside this statement: "lprintf(wtperf, 0, 0U, "%s:...".

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: