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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: