Index: apr/test/testatomic.c =================================================================== --- apr.orig/test/testatomic.c +++ apr/test/testatomic.c @@ -114,7 +114,7 @@ static void test_cas_notequal(abts_case static void test_casptr_equal(abts_case *tc, void *data) { int a; - volatile void *target_ptr = NULL; + void *target_ptr = NULL; void *old_ptr; old_ptr = apr_atomic_casptr(&target_ptr, &a, NULL); @@ -125,7 +125,7 @@ static void test_casptr_equal(abts_case static void test_casptr_equal_nonnull(abts_case *tc, void *data) { int a, b; - volatile void *target_ptr = &a; + void *target_ptr = &a; void *old_ptr; old_ptr = apr_atomic_casptr(&target_ptr, &b, &a); @@ -136,7 +136,7 @@ static void test_casptr_equal_nonnull(ab static void test_casptr_notequal(abts_case *tc, void *data) { int a, b; - volatile void *target_ptr = &a; + void *target_ptr = &a; void *old_ptr; old_ptr = apr_atomic_casptr(&target_ptr, &a, &b); @@ -214,8 +214,8 @@ void *APR_THREAD_FUNC thread_func_mutex( void *APR_THREAD_FUNC thread_func_atomic(apr_thread_t *thd, void *data); apr_thread_mutex_t *thread_lock; -volatile apr_uint32_t mutex_locks = 0; -volatile apr_uint32_t atomic_ops = 0; +apr_uint32_t mutex_locks = 0; +apr_uint32_t atomic_ops = 0; apr_status_t exit_ret_val = 123; /* just some made up number to check on later */ #define NUM_THREADS 40