Mark malloc() and various similar functions with __heedresult.
authorSascha Wildner <saw@online.de>
Tue, 18 Feb 2014 22:40:13 +0000 (23:40 +0100)
committerSascha Wildner <saw@online.de>
Tue, 18 Feb 2014 22:40:52 +0000 (23:40 +0100)
commit9d20c0f5f2b91915565b053cd7fdc57bd66abc22
tree213fdef1b3579a632adfe05f28b26794180b1cc0
parent15fd636fbe4a0af0e875d7d6c35576420ef54f5b
Mark malloc() and various similar functions with __heedresult.

calloc(), malloc(), realloc(), reallocf(), aligned_alloc(),
contigmalloc(), kmalloc_debug(), krealloc_debug(), kstrdup_debug(),
kmalloc(), krealloc(), kstrdup(), kmalloc_cachealign().

This will generate a warnings/errors when their return value is ignored.
include/stdlib.h
sys/sys/malloc.h