mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
Silence a warning message from older versions of GCC.
Revision 370426 introduced the use of a nested function in tests/test_acl.c, but the lack of the 'auto' scope specifier on the function and a forward declaration resulted in compilation errors on the automated test systems. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -211,7 +211,8 @@ AST_TEST_DEFINE(acl)
|
||||
int err = 0;
|
||||
int i;
|
||||
|
||||
int build_ha(const struct acl *acl, size_t len, struct ast_ha **ha, const char *acl_name) {
|
||||
auto int build_ha(const struct acl *acl, size_t len, struct ast_ha **ha, const char *acl_name);
|
||||
auto int build_ha(const struct acl *acl, size_t len, struct ast_ha **ha, const char *acl_name) {
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < len; ++i) {
|
||||
|
Reference in New Issue
Block a user