]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r327697, r327699:
authorpfg <pfg@FreeBSD.org>
Fri, 12 Jan 2018 17:36:19 +0000 (17:36 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 12 Jan 2018 17:36:19 +0000 (17:36 +0000)
commitccc4a2a5d85252c40e3af23a00d30d3653c46f58
tree0b25d081239c404dbc78556f4fec43e5db556d06
parenta586b974f77aedb619baf0454435fa4016339161
MFC r327697, r327699:

Use the __result_use_check attribute for reallocf(9).

MFC r327751:
Use the __result_use_check attribute also for reallocf(3).

The GCC attribute causes a warning to be emitted if a caller of the
function with this attribute does not use its return value. Unlike the
traditional realloc, with reallocf(3) we don't have to check for NULL
values but we still have to make sure the result is used.
include/stdlib.h
sys/sys/malloc.h