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

Jasper Hafkenscheid (JIRA) noreply at issues.asterisk.org
Tue Apr 19 08:13:57 CDT 2022


Jasper Hafkenscheid created ASTERISK-30021:
----------------------------------------------

             Summary: 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


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