Compile wiredtiger external header file under C++ to ensure compliance

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines, Storage Engines - Foundations
    • None
    • 2

      Found from BF-40707, MongoDB generated compilation errors due to an introduction of flexible array members to the wiredtiger.h file. It found from slack conversations that the wiredtiger.h file should be C++ compliant.

      Alex Gorrod
      wiredtiger.h is the definition of WiredTiger. It is the only source file that applications using WiredTiger include. Thus it needs to compile cleanly in the language the application uses - which is C++ in this case.

      It was also found that windows could have detected this specific warning. There is clear discrepancies of compilation warning flags between WT and MongoDB.

      This ticket will add a test that ensures that wiredtiger.h is C++ compliant and detect any compilation gap between WT and MongoDB.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: