]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make use of allocation attributes in system headers.
authorpfg <pfg@FreeBSD.org>
Tue, 7 Apr 2015 14:47:27 +0000 (14:47 +0000)
committerpfg <pfg@FreeBSD.org>
Tue, 7 Apr 2015 14:47:27 +0000 (14:47 +0000)
commitae235f94bd8e004d0501d67e87e1486b2df2c971
tree500a86a3586b227b895efe3a5249e87715d71eb9
parent05cd62f67a272e7af362fe52c5f41a0f86bbd7df
Make use of allocation attributes in system headers.

Start using 'alloc_size' attribute in the allocator functions.
This is useful as it helps the compiler generate warnings on suspicious
code and can also enable some small optimizations.

This is based on r281130, which brought similar enhnacements
to the standard libc headers.
sys/sys/malloc.h