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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Apr 25 17:56:19 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217624#comment-217624 ] 

Rusty Newton commented on ASTERISK-20850:
-----------------------------------------

[~dkdegroot] Take a look through the [Code Revew process|https://wiki.asterisk.org/wiki/display/AST/Code+Review] and post the patch on reviewboard. That system is designed to facilitate peer review. Before that step you'll need to sign a license agreement and *attach* your patch to this issue as a code contribution for it to be considered.

Thanks!

> nested functions aren't portable
> --------------------------------
>
>                 Key: ASTERISK-20850
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20850
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 11.1.0
>         Environment: CLANG
>            Reporter: John Nemeth
>            Assignee: Matt Jordan
>
> 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