So our reward for including <sys/atomic_op.h> seems to be a bunch of
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 04:57:57 +0000 (04:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 04:57:57 +0000 (04:57 +0000)
nattering about casting away volatile.  Losers.

src/include/storage/s_lock.h

index 56016fc9ce94f973d3b3a3fa8d96c02e7bd8948a..4dcdedab3988f3c3d1aa7ce890e608f4c50670d8 100644 (file)
@@ -754,8 +754,8 @@ typedef abilock_t slock_t;
 
 typedef unsigned int slock_t;
 
-#define TAS(lock)                      _check_lock(lock, 0, 1)
-#define S_UNLOCK(lock)         _clear_lock(lock, 0)
+#define TAS(lock)                      _check_lock((slock_t *) (lock), 0, 1)
+#define S_UNLOCK(lock)         _clear_lock((slock_t *) (lock), 0)
 #endif  /* _AIX */