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

Remove dead code, per coverity

    XMLWordPrintable

    Details

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

      Description

      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)...".

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: