0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::allocator: Add returns_nonnull attribute to the profiler's operator new.

This commit is contained in:
Jason Volk 2018-05-29 23:05:19 -07:00
parent 355c1845e3
commit c93166f9e4

View file

@ -127,7 +127,7 @@ ircd::allocator::operator+=(profile &a,
#ifdef RB_PROF_ALLOC // --------------------------------------------------
__attribute__((alloc_size(1), malloc))
__attribute__((alloc_size(1), malloc, returns_nonnull))
void *
operator new(const size_t size)
{