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

David M. Lee (JIRA) noreply at issues.asterisk.org
Wed Jan 9 14:08:45 CST 2013


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

David M. Lee reassigned ASTERISK-20852:
---------------------------------------

    Assignee: David M. Lee
    
> 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
>            Assignee: David M. Lee
>            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