[asterisk-bugs] [JIRA] (ASTERISK-30021) ast_variable_list_replace_variable uses variable with new keyword
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu May 5 09:48:44 CDT 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-30021:
-------------------------------------
Target Release Version/s: 18.12.0
> ast_variable_list_replace_variable uses variable with new keyword
> -----------------------------------------------------------------
>
> Key: ASTERISK-30021
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30021
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_vpb
> Affects Versions: 18.11.0
> Reporter: Jasper Hafkenscheid
> Assignee: Sean Bright
> Target Release: 16.26.0, 18.12.0
>
>
> The newly introduced ast_variable_list_replace_variable method in config.c uses the C++ {{new}} keyword as an argument.
> {noformat}
> int ast_variable_list_replace_variable(struct ast_variable **head, struct ast_variable *old,
> struct ast_variable *new);
> {noformat}
> This file is also included in C++ source, causing a compilation error such as:
> {noformat}
> In file included from /build/asterisk-18.11.2/include/asterisk/channel.h:178,
> from chan_vpb.cc:66:
> /build/asterisk-18.11.2/include/asterisk/config.h:985:23: error: expected ',' or '...' before 'new'
> struct ast_variable *new);
> ^~~
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list