From ca224d2ba49ea8f8b4c30d05a755d281efbc8624 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri, 13 Apr 2001 23:32:57 +0000
Subject: [PATCH] Suppress compiler warnings in Vax and NS32K assembly code:
 'register foo' is not a complete declaration.

---
 src/include/storage/s_lock.h | 10 +++++-----
 1 file 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 */
-- 
GitLab