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

Ignore switch statement (lack of) default warning for Ubuntu tests

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Evergreen
    • None
    • Storage Engines
    • 1
    • StorEng - 2025-02-28

      As we test the transition to v5, there are a few failures caused by a warning for switch cases not having a default case:

      /data/mci/7b3527fa5eb10a77aef6d07378b15329/wiredtiger/src/include/cell_inline.h:522:5: warning: 'switch' missing 'default' label [-Wswitch-default]
      522 |     switch (type) {
          |     ^ 

      We have this failure for a bunch of our Ubuntu tests, including all tests in ! Ubuntu 20.04 ASAN and all failed tests in Ubuntu 20.04 Stress tests. The failed patch will be linked in the comment section below. The plan to move forward is to add a flag to ignore switch default case warnings to ensure the smooth transition to v5, then consider adding default cases later for these tests in another ticket (WT-14128).

            Assignee:
            jasmine.bi@mongodb.com Jasmine Bi
            Reporter:
            jasmine.bi@mongodb.com Jasmine Bi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: