Adopt clang type-aware memory allocation instead of suppressing compilation warnings

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Storage Engines - Foundations
    • None
    • 3

      Clang v21+ includes an implementation of P2719 “Type-aware allocation and deallocation functions”.

      When compiled with clang v21+, WT code base produces "allocator-wrappers" warnings. E.g.:

      src/utilities/util_misc.c:190:1: warning: function util_malloc might be an allocator wrapper [-Wallocator-wrappers]
        190 | util_malloc(size_t len)
            | ^

      Currently, these warnings are suppressed (see WT-17010).

      Consider adopting type-aware memory allocation instead of suppressing compilation warnings.
      For more information see: Adopting type-aware memory allocation

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Alex Blekhman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: