mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
@@ -1076,6 +1076,7 @@ AST_GCC_ATTRIBUTE(warn_unused_result)
|
||||
AST_GCC_ATTRIBUTE(may_alias)
|
||||
AST_GCC_ATTRIBUTE(constructor)
|
||||
AST_GCC_ATTRIBUTE(destructor)
|
||||
AST_GCC_ATTRIBUTE(noreturn,noreturn)
|
||||
|
||||
AC_MSG_CHECKING(for -fsanitize=address support)
|
||||
saved_sanitize_CFLAGS="${CFLAGS}"
|
||||
|
Reference in New Issue
Block a user