From: Kevin P. Fleming Date: Tue, 24 Jul 2012 19:12:09 +0000 (+0000) Subject: Silence a warning message from older versions of GCC. X-Git-Tag: 11.0.0-beta1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ae307bdbd0dce81ab7878f87ad0b37a2759a0c;p=thirdparty%2Fasterisk.git 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 --- 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) {