Silence a warning message from older versions of GCC.
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 24 Jul 2012 19:12:09 +0000 (19:12 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 24 Jul 2012 19:12:09 +0000 (19:12 +0000)
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

tests/test_acl.c

index 102c01b..be9866c 100644 (file)
@@ -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) {