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

clang analysis: garbage values

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.0, 3.2.10, 3.3.12
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      < src/cursor/cur_metadata.c:356:6: warning: The left operand of '==' is a garbage value
      <         if (WT_KEY_IS_METADATA(&cursor->key))
      <             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      < src/cursor/cur_metadata.c:158:3: note: expanded from macro 'WT_KEY_IS_METADATA'
      <         (WT_STRING_MATCH(WT_METADATA_URI, (key)->data, (key)->size - 1) ||\
      <          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      < ./src/include/misc.h:228:52: note: expanded from macro 'WT_STRING_MATCH'
      <             strncmp(str, bytes, len) == 0 && (str)[(len)] == '\0')
      <                                              ~~~~~~~~~~~~ ^
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: