Fix parse_opts coverity warnings

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: