mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
C++: Fix warning on macOS about unused variable
This commit is contained in:
parent
80bcdee646
commit
e008019243
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue