[asterisk-bugs] [JIRA] (ASTERISK-23666) CLONE - nested functions aren't portable

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:26:07 CDT 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-23666:
-------------------------------------

    Target Release Version/s: 14.0.0

> CLONE - nested functions aren't portable
> ----------------------------------------
>
>                 Key: ASTERISK-23666
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23666
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 11.1.0
>         Environment: CLANG
>            Reporter: Diederik de Groot
>      Target Release: 14.0.0
>
>
> Nested functions are a GCC extension that is not sanctioned by C standards, thus the use of them is non-portable.  Specifically, CLANG does not support them.  CLANG is used by OSX, current versions of FreeBSD, and NetBSD is experimenting with it.  The RAII_VAR macro in include/asterisk/utils.h creates nested functions.  This prevents Asterisk 11.* from compiling with CLANG.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list