From 4d04e2c63be30dda78fdc44602d1dd5889b209f6 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 19 Jun 2013 09:20:35 +0200 Subject: [PATCH] utils: Remove volatile qualifier from refcount_t typedef It's not really required anymore (if it ever was) and may cause compiler warnings when using the non atomic versions of ref_get/ref_put. --- src/libstrongswan/utils/utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index 8cc48513be..06282de554 100644 --- a/src/libstrongswan/utils/utils.h +++ b/src/libstrongswan/utils/utils.h @@ -656,8 +656,7 @@ static inline u_int64_t untoh64(void *network) /** * Special type to count references */ -typedef volatile u_int refcount_t; - +typedef u_int refcount_t; #ifdef HAVE_GCC_ATOMIC_OPERATIONS -- 2.47.2