Fix MSVC compilation issue in WT_CRYPT_KEY

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-12-05, SE Foundations - 2025-12-19
    • 1

      Identified from BF-40685, MSVC compilers does not like flexible array and spits out an compilation error:

      [2025/12/04 12:37:31.040] Z:\bazel_tmp\clbs7lzt\execroot\_main\bazel-out\x64_windows-opt\bin\src\third_party\wiredtiger\wiredtiger.h(5753,13): warning C4200: nonstandard extension used: zero-sized array in struct/union
      [2025/12/04 12:37:31.040]     uint8_t data[]; /* Encrypted keys. */
      

      The ticket aims to fix this issue from occuring.

            Assignee:
            Alex Blekhman
            Reporter:
            Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: