From 39ae307bdbd0dce81ab7878f87ad0b37a2759a0c Mon Sep 17 00:00:00 2001
From: "Kevin P. Fleming" <kpfleming@digium.com>
Date: Tue, 24 Jul 2012 19:12:09 +0000
Subject: [PATCH] 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
---
 tests/test_acl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_acl.c b/tests/test_acl.c
index 102c01be46..be9866c0cf 100644
--- a/tests/test_acl.c
+++ b/tests/test_acl.c
@@ -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) {
-- 
GitLab