Skip to content
Snippets Groups Projects
Commit 39ae307b authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

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
parent 6f8bb478
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment