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

Compilation error unreachable code in test/csuite/wt3363_checkpoint_op_races

    XMLWordPrintable

    Details

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

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: