]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add conditional support for noreturn functions. 56/3256/1
authorCorey Farrell <git@cfware.com>
Wed, 20 Jul 2016 03:37:22 +0000 (23:37 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 20 Jul 2016 03:37:22 +0000 (23:37 -0400)
commitc9a1e7815d725e7faac25828b3ed92d55459528e
treed0a33ebfbab083dba583eb6a9d0febdebf472440
parent46a63cc739574be032139928fe5d234faf42ddcb
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