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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.1.0, 4.4.8, 5.0.2
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2021-07-12

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: