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
certified/11.2
Kevin P. Fleming 13 years ago
parent 6f8bb47833
commit 39ae307bdb

@ -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) {

Loading…
Cancel
Save