<assert.h>: add missing __dead2 to __assert().
authorEd Schouten <ed@FreeBSD.org>
Sun, 9 Jan 2011 21:39:46 +0000 (21:39 +0000)
committerSascha Wildner <saw@online.de>
Mon, 20 May 2019 19:15:32 +0000 (21:15 +0200)
commit8ef931ae48fd83bb992f78d06a76d84db0a8353b
treefbbc6c194d643249b45e035fc67438c9b7068233
parent097ba2841338b0dbd2034c978cb6cb95f1cb5ac0
<assert.h>: add missing __dead2 to __assert().

__assert() is called when an assertion fails. After printing an error
message, it will call abort(). abort() never returns, hence it has the
__dead2 attribute. Also add this attribute to __assert().

Taken-from: FreeBSD (r217207)
Submitted-by: Jan Beich
include/assert.h