Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca224d2

Browse files
committed
Suppress compiler warnings in Vax and NS32K assembly code: 'register foo'
is not a complete declaration.
1 parent741604d commitca224d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/include/storage/s_lock.h

Lines changed: 5 additions & 5 deletions
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(volatileslock_t*lock)
241241
{
242-
register_res;
242+
registerint_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(volatileslock_t*lock)
263263
{
264-
register_res;
264+
registerint_res;
265265

266266
__asm__ __volatile__(
267267
"sbitb0, %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)

[8]ページ先頭

©2009-2025 Movatter.jp