]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Addition of clang nullability qualifiers.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 20 Jan 2017 15:56:40 +0000 (15:56 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Fri, 20 Jan 2017 15:56:40 +0000 (15:56 +0000)
commitf3a9adb9c7f6e4a5cd3705225d1f981fdb0b7a4c
tree87abd2e1d74d75d4f9c16d6b585ac7b991cb1be9
parente16c241debbf50d2ff4918d4f985b4e36c4bec67
Addition of clang nullability qualifiers.

For consistency with the qualifiers added in r310977, define a new
qualifier _Null_unspecified which is also defined in clang 3.7+.

Add two new macros:
__NULLABILITY_PRAGMA_PUSH
__NULLABILITY_PRAGMA_POP

These are for use in headers when we want avoid noisy warnings if
some pointers are left without nullability annotations.

These are added with way ahead of their first use to teach the GCC
ports headers of their existance before their first use.
sys/sys/cdefs.h