diff options
author | Corey Farrell <git@cfware.com> | 2016-07-18 23:46:19 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-07-21 13:21:00 -0500 |
commit | 05cfe1a76e7c7e0162b3196c8ff16c064726f53f (patch) | |
tree | f7ede0a5084daee67bbb3fc7e49ed151564aec75 /include/asterisk/autoconfig.h.in | |
parent | 3ca6407dab1d40478d656d3e46b1122ee0995037 (diff) |
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
Diffstat (limited to 'include/asterisk/autoconfig.h.in')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index 51f0f1462..9d2a84c02 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -102,6 +102,9 @@ /* Define to 1 if your GCC C compiler supports the 'may_alias' attribute. */ #undef HAVE_ATTRIBUTE_may_alias +/* Define to 1 if your GCC C compiler supports the 'noreturn' attribute. */ +#undef HAVE_ATTRIBUTE_noreturn + /* Define to 1 if your GCC C compiler supports the 'pure' attribute. */ #undef HAVE_ATTRIBUTE_pure |