git: Mark malloc() and various similar functions with __heedresult.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Feb 18 14:41:07 PST 2014


commit 9d20c0f5f2b91915565b053cd7fdc57bd66abc22
Author: Sascha Wildner <saw at online.de>
Date:   Tue Feb 18 23:40:13 2014 +0100

    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.

Summary of changes:
 include/stdlib.h | 10 +++++-----
 sys/sys/malloc.h | 18 ++++++++++--------
 2 files changed, 15 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d20c0f5f2b91915565b053cd7fdc57bd66abc22


-- 
DragonFly BSD source repository


More information about the Commits mailing list