pool: add attributes to allocate
This commit is contained in:
parent
41c9b504dc
commit
c9f25a3822
2
pool.hpp
2
pool.hpp
@ -78,7 +78,7 @@ namespace cruft {
|
|||||||
|
|
||||||
// Data management
|
// Data management
|
||||||
[[nodiscard]] T*
|
[[nodiscard]] T*
|
||||||
allocate (void)
|
allocate [[gnu::malloc]] [[gnu::returns_nonnull]] (void)
|
||||||
{
|
{
|
||||||
// double check we have enough capacity left
|
// double check we have enough capacity left
|
||||||
if (!m_next)
|
if (!m_next)
|
||||||
|
Loading…
Reference in New Issue
Block a user