1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Suppress compiler warnings in Vax and NS32K assembly code: 'register foo'

is not a complete declaration.
This commit is contained in:
Tom Lane
2001-04-13 23:32:57 +00:00
parent 741604dd84
commit ca224d2ba4

View File

@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * 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 static __inline__ int
tas(volatile slock_t *lock) tas(volatile slock_t *lock)
{ {
register _res; register int _res;
__asm__ __volatile__( __asm__ __volatile__(
" movl $1, r0 \n" " movl $1, r0 \n"
@ -249,7 +249,7 @@ tas(volatile slock_t *lock)
: "=r"(_res) : "=r"(_res)
: "r"(lock) : "r"(lock)
: "r0"); : "r0");
return (int) _res; return _res;
} }
#endif /* NEED_VAX_TAS_ASM */ #endif /* NEED_VAX_TAS_ASM */
@ -261,13 +261,13 @@ tas(volatile slock_t *lock)
static __inline__ int static __inline__ int
tas(volatile slock_t *lock) tas(volatile slock_t *lock)
{ {
register _res; register int _res;
__asm__ __volatile__( __asm__ __volatile__(
" sbitb 0, %0 \n" " sbitb 0, %0 \n"
" sfsd %1 \n" " sfsd %1 \n"
: "=m"(*lock), "=r"(_res)); : "=m"(*lock), "=r"(_res));
return (int) _res; return _res;
} }
#endif /* NEED_NS32K_TAS_ASM */ #endif /* NEED_NS32K_TAS_ASM */