diff options
author | Tom Lane | 2007-07-16 04:57:57 +0000 |
---|---|---|
committer | Tom Lane | 2007-07-16 04:57:57 +0000 |
commit | 5aaf09ac4691211249542647df32d67a51ce6976 (patch) | |
tree | ff7639c76117f48de5bf3c35c361a5df7c784446 | |
parent | 057d5c421f1b231906d1ed59d318c4b17616d5ee (diff) |
So our reward for including <sys/atomic_op.h> seems to be a bunch of
nattering about casting away volatile. Losers.
-rw-r--r-- | src/include/storage/s_lock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index 80b5d64a9a3..8db85ce63c4 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -66,7 +66,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.160 2007/07/16 02:03:14 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.161 2007/07/16 04:57:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -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 */ |