1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 16:37:35 +00:00

Kernel: Cast unused smart-pointer return value to void

This commit is contained in:
Sam Atkins 2021-12-02 12:52:09 +00:00 committed by Andreas Kling
parent 16e5f24e64
commit 907feb84a0

View file

@ -197,7 +197,7 @@ ErrorOr<Region*> AddressSpace::allocate_region_with_vmobject(VirtualRange const&
void AddressSpace::deallocate_region(Region& region) void AddressSpace::deallocate_region(Region& region)
{ {
take_region(region); (void)take_region(region);
} }
NonnullOwnPtr<Region> AddressSpace::take_region(Region& region) NonnullOwnPtr<Region> AddressSpace::take_region(Region& region)