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

clang38 false positive on uninitialized variable.

      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
      

            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: