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

Fix compilation warnings with debug builds

    • 3
    • Storage Engines - 2022-08-08
    • v6.0

      Summary
      When building with CMAKE_BUILD_TYPE=Debug and/or optimization set to -Og there are a number of compiler warnings that cause the build to fail. See WT-9432 for context.

      This is also likely to be related to WT-9209.

      To reproduce the issue, run the following commands:

      cd build
      cmake -DCC_OPTIMIZE_LEVEL=-Og -DENABLE_STRICT=1 -G Ninja ../.
      ninja
      

      Motivation

      • Does this affect any team outside of WT?
        No - the MongoDB server build is fine.
      • How likely is it that this use case or problem will occur?
        Every time the mentioned options are configured.
      • If the problem does occur, what are the consequences and how severe are they?
        There is a signal from a tool that our code may be incorrect, or in the least ambiguous. We should fix it.
      • Is this issue urgent?
        Build cleanliness is important, so I think it's urgent.

      Acceptance Criteria (Definition of Done)
      Can build with debug information and all reasonable compiler warning flags enabled.

      • Testing
        Evergreen testing with compiler options should be enabled.
      • Documentation update
        Nope

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: