]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make use of clang nullability attributes.
authorpfg <pfg@FreeBSD.org>
Sat, 28 Jan 2017 20:54:43 +0000 (20:54 +0000)
committerpfg <pfg@FreeBSD.org>
Sat, 28 Jan 2017 20:54:43 +0000 (20:54 +0000)
commit74d3e29a11aacb8cceb45c4adbefb5f95eda6fc9
tree07257e9473428a20b93966f48b065bab58c5bc4c
parent3d8de9b140ea10a51f93515623f2fa6d981de624
Make use of clang nullability attributes.

Replace uses of the GCC __nonnull__ attribute with the clang nullability
qualifiers. The replacement should be transparent for clang developers as
the new qualifiers will produce the same warnings and will be useful for
static checkers but will not cause aggressive optimizations.

GCC will not produce such warnings and developers will have to use
upgraded GCC ports built with the system headers from r312538.

Hinted by: Apple's Libc-1158.20.4, Bionic libc
MFC after: 11.1 Release

Differential Revision: https://reviews.freebsd.org/D9004
include/err.h
include/pthread.h
include/signal.h
include/stdio.h
include/stdlib.h
lib/libthr/thread/thr_private.h
sys/sys/systm.h