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

clang38 false positive on uninitialized variable.

    Details

      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: