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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • 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:382: NO_EFFECT 120173 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: