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

Coverity 1352894: Logically dead code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.8.0
    • Labels:
      None

      Description

      test/fops/fops.c:

                     case 8:
      146                        ++s->bulk_unique;
      147                        obj_bulk_unique(__wt_random(&rnd) & 1);
      148                        break;
         	dead_error_condition: The switch value __wt_random(&rnd) % 9U cannot be 9U.
         	
      CID 1352894 (#1 of 1): Logically dead code (DEADCODE)
      dead_error_begin: Execution cannot reach this statement: case 9U:.
      149                case 9:
      150                        ++s->create_unique;
      151                        obj_create_unique(__wt_random(&rnd) & 1);
      152                        break;
      153                }
      154
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                keith.bostic Keith Bostic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: