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

Fix coverity error when enum is compared against 0 (incr_backup:check_table)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • WT10.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2021-07-12

      Enum compared against 0

      No enumeration values are negative, so this test will always evaluate the same way. An enumeration value is usually not less than 0
      /test/csuite/incr_backup/main.c:705: NO_EFFECT 120174 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "op_type >= 0U".

            Assignee:
            alexey.anisimov@mongodb.com Alexey Anisimov (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: