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

Remove dead code, per coverity

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: