]> granicus.if.org Git - apache/commitdiff
I'm not 100% sure about this, but it seems to silence the
authorChris Darroch <chrisd@apache.org>
Fri, 12 Dec 2008 20:31:09 +0000 (20:31 +0000)
committerChris Darroch <chrisd@apache.org>
Fri, 12 Dec 2008 20:31:09 +0000 (20:31 +0000)
compiler warnings generated by r101236 (which was, in turn,
intended to do the same).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726113 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/worker/fdqueue.c

index dfbe8c47cfd7df8277c7cb34ecf577beeb5b46ab..49e53032ceb5a13f415066627cc1a7ffe5f26d38 100644 (file)
@@ -43,7 +43,7 @@ static apr_status_t queue_info_cleanup(void *data_)
         if (first_pool == NULL) {
             break;
         }
-        if (apr_atomic_casptr((volatile void**)&(qi->recycled_pools), first_pool->next,
+        if (apr_atomic_casptr((void*)&(qi->recycled_pools), first_pool->next,
                               first_pool) == first_pool) {
             apr_pool_destroy(first_pool->pool);
         }
@@ -100,7 +100,7 @@ apr_status_t ap_queue_info_set_idle(fd_queue_info_t *queue_info,
              */
             struct recycled_pool *next = queue_info->recycled_pools;
             new_recycle->next = next;
-            if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools),
+            if (apr_atomic_casptr((void*)&(queue_info->recycled_pools),
                                   new_recycle, next) == next) {
                 break;
             }
@@ -209,7 +209,7 @@ apr_status_t ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info,
         if (first_pool == NULL) {
             break;
         }
-        if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools), first_pool->next,
+        if (apr_atomic_casptr((void*)&(queue_info->recycled_pools), first_pool->next,
                               first_pool) == first_pool) {
             *recycled_pool = first_pool->pool;
             break;