clang38 false positive on uninitialized variable.

XMLWordPrintableJSON

    • None
    • None

      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 (Inactive)
              Reporter:
              Keith Bostic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: