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

Fix parse_opts coverity warnings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.1.0, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Storage Engines - 2022-10-31

      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
      /test/utility/parse_opts.c:146: DEADCODE 133976 Condition "ch == 63", taking false branch. Now the value of "ch" cannot be equal to 63.
      /test/utility/parse_opts.c:149: DEADCODE 133976 When switching on "ch", the value of "ch" cannot be equal to 63.
      /test/utility/parse_opts.c:202: DEADCODE 133976 The "switch" governing value "ch" cannot be "63".
      /test/utility/parse_opts.c:202: DEADCODE 133976 Execution cannot reach this statement: "case 63:".

            Assignee:
            andrew.morton@mongodb.com Andrew Morton
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: