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

Add CMake option -DWERROR=[ON|OFF] to allow build to complete with warnings

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • 3
    • StorEng - Defined Pipeline

      SEAI-195 discussion identified the use case of "experimental or exploratory development" (for example: Skunkworks) that is inhibited or slowed down by stopping the build when warnings are treated as errors. For example this use case a warning such as "unused function" is clearly benign.

      To support the above use case the following CMake flag should be added:

      -DWERROR=[ON|OFF]
      

      This is a specialized use case that must be explicitly selected when running CMake and will default to ON, consistent with the project policy of no warnings in the code.

      This will require adding this option to the build system which specifically prevents treating warnings as errors for all support build toolchains: gcc, clang, msvc.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            marc.butler@mongodb.com Marc Butler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: