Hmm, so evidently _check_lock and _clear_lock take an argument of type
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 14:02:22 +0000 (14:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Jul 2007 14:02:22 +0000 (14:02 +0000)
int not unsigned int.  Third try to get grebe building without warnings...

src/include/storage/s_lock.h

index 4dcdedab3988f3c3d1aa7ce890e608f4c50670d8..bf366afde47ef8683b9f7ed96e276f97c1157f0d 100644 (file)
@@ -752,7 +752,7 @@ typedef abilock_t slock_t;
 
 #include <sys/atomic_op.h>
 
-typedef unsigned int slock_t;
+typedef int slock_t;
 
 #define TAS(lock)                      _check_lock((slock_t *) (lock), 0, 1)
 #define S_UNLOCK(lock)         _clear_lock((slock_t *) (lock), 0)