[asterisk-bugs] [JIRA] (ASTERISK-29287) app.h: C++ compatibility broken

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Feb 23 13:05:15 CST 2021


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

Friendly Automation commented on ASTERISK-29287:
------------------------------------------------

Change 15503 merged by Friendly Automation:
app.h: Restore C++ compatibility for macro AST_DECLARE_APP_ARGS

[https://gerrit.asterisk.org/c/asterisk/+/15503|https://gerrit.asterisk.org/c/asterisk/+/15503]

> app.h: C++ compatibility broken
> -------------------------------
>
>                 Key: ASTERISK-29287
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29287
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/General
>    Affects Versions: 16.16.0
>            Reporter: Jean Aunis - Prescom
>            Assignee: Jean Aunis - Prescom
>
> The macro AST_DECLARE_APP_ARGS is no longer compatible with C++. This issue looks to have been introduced when fixing gcc-10 warnings.
> When compiling this piece of code :
> {code}
> AST_DECLARE_APP_ARGS(args,
> 	AST_APP_ARG(arg1);
> 	AST_APP_ARG(arg2);
> );
> {code}
> g++ gives the following error:
> {code}
> myapp.cpp:278:2: error: types may not be defined in ‘sizeof’ expressions
>   AST_DECLARE_APP_ARGS(args,
> {code}
> I will provide a patch.



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



More information about the asterisk-bugs mailing list