apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1763670 - /apr/apr/trunk/test/testatomic.c
Date Fri, 07 Oct 2016 00:50:38 GMT
Author: ylavic
Date: Fri Oct  7 00:50:38 2016
New Revision: 1763670

URL: http://svn.apache.org/viewvc?rev=1763670&view=rev
Log:
Follow up to r1763666: adapt unit test.

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

Modified: apr/apr/trunk/test/testatomic.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testatomic.c?rev=1763670&r1=1763669&r2=1763670&view=diff
==============================================================================
--- apr/apr/trunk/test/testatomic.c (original)
+++ apr/apr/trunk/test/testatomic.c Fri Oct  7 00:50:38 2016
@@ -85,7 +85,7 @@ static void test_xchgptr(abts_case *tc,
 {
     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
 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
 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(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);



Mime
View raw message