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

Coverity 1352894: Logically dead code

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.8.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: