mirror of
https://github.com/libretro/RetroArch.git
synced 2025-12-28 05:24:00 +00:00
Use the return value of rbtree_insert to silence a warning
The function prototype wants us to be warned when the result is not used, but it's not clear why - I assume to check for failure.
This commit is contained in:
parent
ee881cfd67
commit
29639b98b3
@ -191,10 +191,13 @@ void* linearMemAlign(size_t len, size_t alignment)
|
||||
sLinearPool.Deallocate(chunk);
|
||||
return nullptr;
|
||||
}
|
||||
if (rbtree_insert(&sAddrMap, &node->node));
|
||||
if (!rbtree_insert(&sAddrMap, &node->node)) {
|
||||
sLinearPool.Deallocate(chunk);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (sLinearPool_maxaddr < (u32)sLinearPool.last->base)
|
||||
sLinearPool_maxaddr = (u32)sLinearPool.last->base;
|
||||
if (sLinearPool_maxaddr < (u32)sLinearPool.last->base)
|
||||
sLinearPool_maxaddr = (u32)sLinearPool.last->base;
|
||||
|
||||
return chunk.addr;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user