From ea5b5357cdc79c7742c035032f5500e4a97a6d55 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 12 Aug 1997 22:55:25 +0000 Subject: Remove more (void) and fix -Wall warnings. --- src/backend/storage/lmgr/lock.c | 10 +++++----- src/backend/storage/lmgr/multi.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/backend/storage/lmgr') diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 562df6c938..fc56f8c04a 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.9 1997/03/15 01:23:58 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.10 1997/08/12 22:54:07 momjian Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -256,7 +256,7 @@ LockTabInit(char *tabName, if (! ltable) { elog(NOTICE,"LockTabInit: couldn't malloc lock table %s\n",tabName); - (void) pfree (shmemName); + pfree (shmemName); return(INVALID_TABLEID); } @@ -349,7 +349,7 @@ LockTabInit(char *tabName, SpinRelease(LockMgrLock); - (void) pfree (shmemName); + pfree (shmemName); if (status) return(ltable->ctl->tableId); @@ -1057,7 +1057,7 @@ LockRelease(LockTableId tableId, LOCKTAG *lockName, LOCKT lockt) * himself. * -------------------------- */ - (void) ProcLockWakeup(&(lock->waitProcs), (char *) ltable, (char *) lock); + ProcLockWakeup(&(lock->waitProcs), (char *) ltable, (char *) lock); } SpinRelease(masterLock); @@ -1286,7 +1286,7 @@ LockReleaseAll(LockTableId tableId, SHM_QUEUE *lockQueue) * -------------------- */ waitQueue = &(lock->waitProcs); - (void) ProcLockWakeup(waitQueue, (char *) ltable, (char *) lock); + ProcLockWakeup(waitQueue, (char *) ltable, (char *) lock); } #ifdef USER_LOCKS diff --git a/src/backend/storage/lmgr/multi.c b/src/backend/storage/lmgr/multi.c index 22951e4758..1f9894fdb4 100644 --- a/src/backend/storage/lmgr/multi.c +++ b/src/backend/storage/lmgr/multi.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.2 1996/11/03 05:07:31 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.3 1997/08/12 22:54:09 momjian Exp $ * * NOTES: * (1) The lock.c module assumes that the caller here is doing @@ -275,7 +275,7 @@ MultiAcquire(LockTableId tableId, * the last level lock we successfully acquired */ retStatus = FALSE; - (void) MultiRelease(tableId, tag, lockt, i); + MultiRelease(tableId, tag, lockt, i); /* now leave the loop. Don't try for any more locks */ break; } -- cgit v1.2.1