[asterisk-commits] kpfleming: trunk r370453 - /trunk/tests/test_acl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 24 14:12:12 CDT 2012
Author: kpfleming
Date: Tue Jul 24 14:12:09 2012
New Revision: 370453
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370453
Log:
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.
Modified:
trunk/tests/test_acl.c
Modified: trunk/tests/test_acl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_acl.c?view=diff&rev=370453&r1=370452&r2=370453
==============================================================================
--- trunk/tests/test_acl.c (original)
+++ trunk/tests/test_acl.c Tue Jul 24 14:12:09 2012
@@ -211,7 +211,8 @@
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) {
More information about the asterisk-commits
mailing list