diff options
author | Yann Ylavic <ylavic@apache.org> | 2016-10-07 00:50:38 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2016-10-07 00:50:38 +0000 |
commit | fddca8b6fe3041bb5d490950e84712f998b530ce (patch) | |
tree | 573a5cdb90fe83311c1e0d8efe5ea94aaf7ba79d /test/testatomic.c | |
parent | 4cda7e3ac8ce58b09bce61605d5d7fb9f090e121 (diff) | |
download | apr-fddca8b6fe3041bb5d490950e84712f998b530ce.tar.gz |
Follow up to r1763666: adapt unit test.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1763670 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testatomic.c')
-rw-r--r-- | test/testatomic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testatomic.c b/test/testatomic.c index b3862a8b0..4bf2caa46 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -85,7 +85,7 @@ static void test_xchgptr(abts_case *tc, void *data) { int a; void *ref = "little piggy"; - volatile void *target_ptr = ref; + void *target_ptr = ref; void *old_ptr; old_ptr = apr_atomic_xchgptr(&target_ptr, &a); @@ -126,7 +126,7 @@ static void test_cas_notequal(abts_case *tc, void *data) 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); @@ -137,7 +137,7 @@ static void test_casptr_equal(abts_case *tc, void *data) 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); @@ -148,7 +148,7 @@ static void test_casptr_equal_nonnull(abts_case *tc, void *data) 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); |