]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add conditional support for noreturn functions. 84/3284/1
authorCorey Farrell <git@cfware.com>
Tue, 19 Jul 2016 03:46:19 +0000 (23:46 -0400)
committerCorey Farrell <git@cfware.com>
Thu, 21 Jul 2016 18:21:00 +0000 (13:21 -0500)
commit05cfe1a76e7c7e0162b3196c8ff16c064726f53f
treef7ede0a5084daee67bbb3fc7e49ed151564aec75
parent3ca6407dab1d40478d656d3e46b1122ee0995037
Add conditional support for noreturn functions.

This adds support for tagging functions with the noreturn attribute.
If DO_CRASH is enabled then ast_do_crash never returns.  If AST_DEVMODE
and DO_CRASH are enabled then failed assertions never return.  This can
resolve a large number of false positives with static analyzers.

ASTERISK-26220 #close

Change-Id: Icfb61e5fe54574eced4c3e88b317244f467ec753
configure
configure.ac
include/asterisk/autoconfig.h.in
include/asterisk/compiler.h
include/asterisk/utils.h
main/utils.c