Summary: | ASTERISK-20852: asterisk/strings.h: struct ast_str used before its declaration | ||
Reporter: | Pavel Troller (patrol-cz) | Labels: | |
Date Opened: | 2013-01-02 09:16:52.000-0600 | Date Closed: | 2013-01-09 14:09:45.000-0600 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Core/General |
Versions: | 11.1.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Any | Attachments: | ( 0) strings.diff |
Description: | 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. | ||
Comments: | By: Pavel Troller (patrol-cz) 2013-01-02 09:18:58.558-0600 A simple patch, moving the function prototype just under the structure declaration. It fixes the issue. |