diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-13 23:32:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-13 23:32:57 +0000 |
commit | ca224d2ba49ea8f8b4c30d05a755d281efbc8624 (patch) | |
tree | d56971fdb37c057af53a98cc7553c77f4ae5370b | |
parent | 741604dd84dbbd58368a0206f73de259cb6718f4 (diff) | |
download | postgresql-ca224d2ba49ea8f8b4c30d05a755d281efbc8624.tar.gz postgresql-ca224d2ba49ea8f8b4c30d05a755d281efbc8624.zip |
Suppress compiler warnings in Vax and NS32K assembly code: 'register foo'
is not a complete declaration.
-rw-r--r-- | src/include/storage/s_lock.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index a9be5896255..e8f900a4ef4 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.91 2001/03/25 17:52:46 tgl Exp $ + * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.92 2001/04/13 23:32:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -239,7 +239,7 @@ tas(volatile slock_t *lock) static __inline__ int tas(volatile slock_t *lock) { - register _res; + register int _res; __asm__ __volatile__( " movl $1, r0 \n" @@ -249,7 +249,7 @@ tas(volatile slock_t *lock) : "=r"(_res) : "r"(lock) : "r0"); - return (int) _res; + return _res; } #endif /* NEED_VAX_TAS_ASM */ @@ -261,13 +261,13 @@ tas(volatile slock_t *lock) static __inline__ int tas(volatile slock_t *lock) { - register _res; + register int _res; __asm__ __volatile__( " sbitb 0, %0 \n" " sfsd %1 \n" : "=m"(*lock), "=r"(_res)); - return (int) _res; + return _res; } #endif /* NEED_NS32K_TAS_ASM */ |