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

clang38 false positive on uninitialized variable.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • WT2.9.0, 3.2.10, 3.3.12
    • None

    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

            keith.bostic@mongodb.com Keith Bostic
            keith.bostic@mongodb.com Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: