This commit removes all inline annotations that the compiler does not actually inline, and inserts pragma directives to selectively disable warnings where necessary.
This is required because the heap is shared among all tasks and protected using a mutex which only works in kernel space.