diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2012-07-24 19:12:09 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2012-07-24 19:12:09 +0000 |
commit | 39ae307bdbd0dce81ab7878f87ad0b37a2759a0c (patch) | |
tree | 05e442ac40461f6a8eb882bcd25c684b7d0d1259 /tests/test_acl.c | |
parent | 6f8bb4783362af8b4472ebb61b492b476b58035e (diff) |
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
Diffstat (limited to 'tests/test_acl.c')
-rw-r--r-- | tests/test_acl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_acl.c b/tests/test_acl.c index 102c01be4..be9866c0c 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) { |