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

Compilation error unreachable code in test/csuite/wt3363_checkpoint_op_races

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-07-31

      When compiling without diagnostic, I get a warning/error:

      /Users/dda/wt/git/workgen-crash/test/csuite/wt3363_checkpoint_op_races/main.c:89:7: error: code will
      never be executed [-Werror,-Wunreachable-code]
      if (!testutil_is_flag_set("WT3363_CHECKPOINT_OP_RACES"))
      1 error generated.

      Here's my compiler version:

      $ clang --version
      Apple LLVM version 8.1.0 (clang-802.0.42)
      Target: x86_64-apple-darwin16.6.0
      Thread model: posix
      InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: