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

Remove dead code, per coverity

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      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
      /ext/extractors/csv/csv_extractor.c:162: DEADCODE 120744 Condition "(ret = (*parser->get)(parser, "format", &format)) != 0", taking false branch. Now the value of "ret" is equal to 0.
      /ext/extractors/csv/csv_extractor.c:170: DEADCODE 120744 At condition "ret != 0", the value of "ret" must be equal to 0.
      /ext/extractors/csv/csv_extractor.c:170: DEADCODE 120744 The condition "ret != 0" cannot be true.
      /ext/extractors/csv/csv_extractor.c:171: DEADCODE 120744 Execution cannot reach this statement: "(void)(*wt_api->err_printf)...".

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: