clang-tidy: muted "use of memory after it is freed" in MemoryPool

This commit is contained in:
Benoit Blanchon
2021-06-04 11:00:09 +02:00
parent 9dbf44388d
commit a24edac5a9

View File

@ -37,7 +37,8 @@ class MemoryPool {
}
void* buffer() {
return _begin;
return _begin; // NOLINT(clang-analyzer-unix.Malloc)
// movePointers() alters this pointer
}
// Gets the capacity of the memoryPool in bytes