[asterisk-bugs] [JIRA] (ASTERISK-29287) app.h: C++ compatibility broken
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Mar 11 11:50:17 CST 2021
[ https://issues.asterisk.org/jira/browse/ASTERISK-29287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-29287:
-------------------------------------
Target Release Version/s: 18.3.0
> 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
> Target Release: 16.17.0, 18.3.0
>
>
> 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