-
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
- is related to
-
WT-17010 Fix clang 21 compiler allocator wrapper [-Wallocator-wrappers] warnings
-
- Closed
-
- links to