C++: Fix warning on macOS about unused variable

This commit is contained in:
Olivier Goffart 2023-11-13 12:08:36 +01:00
parent 80bcdee646
commit e008019243

View file

@ -94,7 +94,7 @@ inline cbindgen_private::Rect convert_anonymous_rect(std::tuple<float, float, fl
return cbindgen_private::Rect { .x = x, .y = y, .width = w, .height = h };
}
inline void dealloc(const ItemTreeVTable *, uint8_t *ptr, vtable::Layout layout)
inline void dealloc(const ItemTreeVTable *, uint8_t *ptr, [[maybe_unused]] vtable::Layout layout)
{
#ifdef __cpp_sized_deallocation
::operator delete(reinterpret_cast<void *>(ptr), layout.size,