]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add conditional support for noreturn functions. 57/3257/1
authorCorey Farrell <git@cfware.com>
Tue, 19 Jul 2016 03:46:19 +0000 (23:46 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 20 Jul 2016 03:35:41 +0000 (23:35 -0400)
commit7fdf7c3d4cf1124a3a9bbed86c9490e0a0b2d125
treee8dd9723ab8e3558b186f2a86c6f0c286f50b3ee
parent5f24874ebb8686eb73817084385bb23727c19e85
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