Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ca224d2

Browse files
committed
Suppress compiler warnings in Vax and NS32K assembly code: 'register foo'
is not a complete declaration.
1 parent 741604d commit ca224d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/include/storage/s_lock.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.91 2001/03/25 17:52:46 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.92 2001/04/13 23:32:57 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -239,7 +239,7 @@ tas(volatile slock_t *lock)
239239
static __inline__ int
240240
tas(volatile slock_t *lock)
241241
{
242-
register _res;
242+
register int _res;
243243

244244
__asm__ __volatile__(
245245
" movl $1, r0 \n"
@@ -249,7 +249,7 @@ tas(volatile slock_t *lock)
249249
: "=r"(_res)
250250
: "r"(lock)
251251
: "r0");
252-
return (int) _res;
252+
return _res;
253253
}
254254

255255
#endif /* NEED_VAX_TAS_ASM */
@@ -261,13 +261,13 @@ tas(volatile slock_t *lock)
261261
static __inline__ int
262262
tas(volatile slock_t *lock)
263263
{
264-
register _res;
264+
register int _res;
265265

266266
__asm__ __volatile__(
267267
" sbitb 0, %0 \n"
268268
" sfsd %1 \n"
269269
: "=m"(*lock), "=r"(_res));
270-
return (int) _res;
270+
return _res;
271271
}
272272

273273
#endif /* NEED_NS32K_TAS_ASM */

0 commit comments

Comments
 (0)