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

Coverity analysis defect 114074: Logically dead code (rework)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.1.0, 5.0.0-rc2, 4.4.8
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2021-06-14

      Description

      The error is: 

      dead_error_condition: The switch governing value op_type cannot be _OPERATION_TYPE_COUNT.

      CID 114074 (#1 of 1): Logically dead code (DEADCODE)dead_error_begin: Execution cannot reach this statement: case _OPERATION_TYPE_COUNT:.

       

      WT-5733 tried to address an issue raised by Coverity: 

      https://coverity.corp.mongodb.com/reports.htm#v16729/p10049/fileInstanceId=35867688&defectInstanceId=20081907&mergedDefectId=114074&eventId=20081907-4

      Despite of the changes, Coverity still complains. Using the if/else if/etc approach should fix the issue for good.

      Interestingly, Coverity does not complain anymore about the switch here but only this one.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alexey.anisimov Alexey Anisimov
              Reporter:
              etienne.petrel Etienne Petrel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: