[asterisk-bugs] [JIRA] (ASTERISK-20852) asterisk/strings.h: struct ast_str used before its declaration

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Jan 4 13:11:45 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-20852:
------------------------------------

    Status: Open  (was: Triage)
    
> asterisk/strings.h: struct ast_str used before its declaration
> --------------------------------------------------------------
>
>                 Key: ASTERISK-20852
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20852
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 11.1.0
>         Environment: Any
>            Reporter: Pavel Troller
>            Severity: Minor
>         Attachments: strings.diff
>
>
> A prototype of ast_regex_string_to_regex_pattern() function on line 268 of strings.h contains "struct ast_str **regex_pattern" parameter, but struct ast_str is declared later, on line 379.It causes compilation warnings ("struct ast_str declared inside parameter list") and leads to miscompiled code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list