apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1792965 - /apr/apr/branches/1.6.x/test/testlock.c
Date Thu, 27 Apr 2017 22:41:32 GMT
Author: rjung
Date: Thu Apr 27 22:41:32 2017
New Revision: 1792965

URL: http://svn.apache.org/viewvc?rev=1792965&view=rev
Log:
Silence compiler warning "defined but not used".

Modified:
    apr/apr/branches/1.6.x/test/testlock.c

Modified: apr/apr/branches/1.6.x/test/testlock.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/test/testlock.c?rev=1792965&r1=1792964&r2=1792965&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/test/testlock.c (original)
+++ apr/apr/branches/1.6.x/test/testlock.c Thu Apr 27 22:41:32 2017
@@ -183,6 +183,7 @@ static void test_thread_mutex(abts_case
     ABTS_INT_EQUAL(tc, MAX_ITER, x);
 }
 
+#if APR_HAS_TIMEDLOCKS
 static void test_thread_timedmutex(abts_case *tc, void *data)
 {
     apr_thread_t *t1, *t2, *t3, *t4;
@@ -214,6 +215,7 @@ static void test_thread_timedmutex(abts_
 
     ABTS_INT_EQUAL(tc, MAX_ITER, x);
 }
+#endif
 
 static void test_thread_rwlock(abts_case *tc, void *data)
 {
@@ -342,6 +344,7 @@ static void test_timeoutcond(abts_case *
                        apr_thread_cond_destroy(timeout_cond));
 }
 
+#if APR_HAS_TIMEDLOCKS
 static void test_timeoutmutex(abts_case *tc, void *data)
 {
     apr_status_t s;
@@ -373,6 +376,7 @@ static void test_timeoutmutex(abts_case
     APR_ASSERT_SUCCESS(tc, "Unable to destroy the mutex",
                        apr_thread_mutex_destroy(timeout_mutex));
 }
+#endif
 
 #endif /* !APR_HAS_THREADS */
 



Mime
View raw message