[asterisk-bugs] [JIRA] (ASTERISK-30021) ast_variable_list_replace_variable uses variable with new keyword

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Tue Apr 19 09:34:57 CDT 2022


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

Benjamin Keith Ford edited comment on ASTERISK-30021 at 4/19/22 9:33 AM:
-------------------------------------------------------------------------

This is likely due to compiler used. Would you be interested in submitting a patch for this? Information on how to do so can be found [here|https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage]\[1\].

\[1\]: https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage


was (Author: bford):
This is likely a compiler issue. Would you be interested in submitting a patch for this? Information on how to do so can be found [here|https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage]\[1\].

\[1\]: https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage

> 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: Jasper Hafkenscheid
>
> 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