You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2021/11/17 18:51:44 UTC

svn commit: r1895116 - /apr/apr/trunk/test/testmmap.c

Author: mturk
Date: Wed Nov 17 18:51:44 2021
New Revision: 1895116

URL: http://svn.apache.org/viewvc?rev=1895116&view=rev
Log:
Fix compile error for C compilers that do not allow variable declarations after npn-declaration instructions

Modified:
    apr/apr/trunk/test/testmmap.c

Modified: apr/apr/trunk/test/testmmap.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testmmap.c?rev=1895116&r1=1895115&r2=1895116&view=diff
==============================================================================
--- apr/apr/trunk/test/testmmap.c (original)
+++ apr/apr/trunk/test/testmmap.c Wed Nov 17 18:51:44 2021
@@ -175,10 +175,12 @@ static void test_mmap_offset(abts_case *
 
 abts_suite *testmmap(abts_suite *suite)
 {
+#if APR_HAS_MMAP
+    int i;
+#endif
     suite = ADD_SUITE(suite)
 
-#if APR_HAS_MMAP    
-    apr_size_t i;
+#if APR_HAS_MMAP
     apr_pool_create(&ptest, p);
     for (i = 0; test_set[i].filename; ++i) {
         abts_run_test(suite, create_filename, (void *)test_set[i].filename);