[asterisk-bugs] [JIRA] (ASTERISK-25956) Compilation error in conditionally compiled code in config_options.c

Asterisk Team (JIRA) noreply at issues.asterisk.org
Mon Apr 25 07:25:56 CDT 2016


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

Asterisk Team commented on ASTERISK-25956:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> Compilation error in conditionally compiled code in config_options.c
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-25956
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25956
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Configuration
>    Affects Versions: 13.8.2
>         Environment: Yocto 2.1
> AST_XML_DOCS not defined
>            Reporter: Chris Trobridge
>
> config_options.c contains an ifdef that does not completely contain an if statement, leading to syntax errors when AST_XML_DOCS is not defined.
> Current code section follows (config_options.c:195), swapping the last two lines fixes the compilation.
> #ifdef AST_XML_DOCS
> 		if (!info->hidden && !opt->no_doc &&
> 			xmldoc_update_config_option(types, info->module, opt->name, type->name, opt->default_val, opt->match_type == ACO_REGEX, opt->type)) {
> #ifdef AST_DEVMODE
> 			opt->doc_unavailable = 1;
> #endif
> #endif
> 		}



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



More information about the asterisk-bugs mailing list