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

clang38 false positive on uninitialized variable.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.2.10, 3.3.12
    • Component/s: None
    • Labels:

      Description

      clang38:

      --- src/async/async_worker.lo ---
      In file included from src/async/async_worker.c:9:
      In file included from ./src/include/wt_internal.h:376:
      ./src/include/btree.i:242:7: error: variable 'decr' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
                          decr, "WT_CACHE.bytes_dirty_intl");
                          ^~~~
      ./src/include/btree.i:202:13: note: initialize the variable 'decr' to silence this warning
              size_t decr, orig;
                         ^
                          = 0
      

        Attachments

          Activity

            People

            Assignee:
            keith.bostic Keith Bostic
            Reporter:
            keith.bostic Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: