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

Add --Wcast-qual to the compiler warning flags.

      In the process of testing stricter compiler flags (WT-2682) we uncovered that the WT_PAGE.dsk structure is declared const, but is updated. The compiler flag that reveals the problem is: --Wcast-qual.

      There is a case in reconciliation with overflow records where we update the disk image, see for more information.

      It would be nice to be able to consider the WT_PAGE.dsk image as const, but that will require two fairly major changes:

      • Finding an alternative solution to the overflow record problem
      • Pushing the const'ness down into users of WT_PAGE.dsk

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: