git: kernel: Disable few nonnull attributes.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Jan 21 11:06:50 PST 2018


commit 5400db7fdeb785bcf4d25e1bf5ef45ded01af27c
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Jan 21 20:31:01 2018 +0200

    kernel: Disable few nonnull attributes.
    
    To avoid -Wnonnull-compare, similarly as in:
    0f037c78525bfb7df49de8338826e15137859b1d
    
    devfs_core.c:   devfs_find_device_by_name()
    			1st arg checked (NULL == return)
    kern_slaballoc.c: kfree()
    			1st arg checked (NULL == panic)
    			2nd arg not checked
    kern_synch.c:   tsleep()
    			1st arg checked (NULL == KASSERT)
    subr_prf.c:	kvcprintf()
    			1st arg checked (NULL == "(fmt null)")
    subr_sbuf.c:	sbuf_vprintf()
    			2nd arg checked (NULL == KASSERT)

Summary of changes:
 sys/sys/devfs.h  | 2 +-
 sys/sys/malloc.h | 3 +--
 sys/sys/sbuf.h   | 2 +-
 sys/sys/systm.h  | 4 ++--
 4 files changed, 5 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5400db7fdeb785bcf4d25e1bf5ef45ded01af27c


-- 
DragonFly BSD source repository



More information about the Commits mailing list