Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5aaf09a

Browse files
committed
So our reward for including <sys/atomic_op.h> seems to be a bunch of
nattering about casting away volatile. Losers.
1 parent 057d5c4 commit 5aaf09a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/storage/s_lock.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
69-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.160 2007/07/16 02:03:14 tgl Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.161 2007/07/16 04:57:57 tgl Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -754,8 +754,8 @@ typedef abilock_t slock_t;
754754

755755
typedef unsigned int slock_t;
756756

757-
#define TAS(lock) _check_lock(lock, 0, 1)
758-
#define S_UNLOCK(lock) _clear_lock(lock, 0)
757+
#define TAS(lock) _check_lock((slock_t *) (lock), 0, 1)
758+
#define S_UNLOCK(lock) _clear_lock((slock_t *) (lock), 0)
759759
#endif /* _AIX */
760760

761761

0 commit comments

Comments
 (0)