mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove more (void) and fix -Wall warnings.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.15 1997/08/12 20:15:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.16 1997/08/12 22:52:15 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -210,7 +210,7 @@ Async_Notify(char *relname)
|
||||
tdesc, &isnull);
|
||||
if (!DatumGetInt32(d)) {
|
||||
rTuple = heap_modifytuple(lTuple, b, lRel, value, nulls, repl);
|
||||
(void) heap_replace(lRel, &lTuple->t_ctid, rTuple);
|
||||
heap_replace(lRel, &lTuple->t_ctid, rTuple);
|
||||
}
|
||||
ReleaseBuffer(b);
|
||||
}
|
||||
@@ -575,7 +575,7 @@ Async_NotifyFrontEnd()
|
||||
d = (Datum) heap_getattr(lTuple, b, Anum_pg_listener_relname,
|
||||
tdesc, &isnull);
|
||||
rTuple = heap_modifytuple(lTuple, b, lRel, value, nulls, repl);
|
||||
(void) heap_replace(lRel, &lTuple->t_ctid, rTuple);
|
||||
heap_replace(lRel, &lTuple->t_ctid, rTuple);
|
||||
|
||||
/* notifying the front end */
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.7 1997/01/02 06:18:25 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.8 1997/08/12 22:52:18 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* The PortalExecutorHeapMemory crap needs to be eliminated
|
||||
@@ -82,7 +82,7 @@ PortalCleanup(Portal portal)
|
||||
* switch back to previous context
|
||||
* ----------------
|
||||
*/
|
||||
(void) MemoryContextSwitchTo(context);
|
||||
MemoryContextSwitchTo(context);
|
||||
PortalExecutorHeapMemory = (MemoryContext) NULL;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ PerformPortalFetch(char *name,
|
||||
* do what is possible across transaction boundries.
|
||||
* ----------------
|
||||
*/
|
||||
(void) MemoryContextSwitchTo(
|
||||
MemoryContextSwitchTo(
|
||||
(MemoryContext)PortalGetHeapMemory(GetPortalByName(NULL)));
|
||||
}
|
||||
|
||||
@@ -469,7 +469,7 @@ PerformAddAttribute(char *relationName,
|
||||
|
||||
((Form_pg_class) GETSTRUCT(reltup))->relnatts = maxatts;
|
||||
oldTID = reltup->t_ctid;
|
||||
(void) heap_replace(relrdesc, &oldTID, reltup);
|
||||
heap_replace(relrdesc, &oldTID, reltup);
|
||||
|
||||
/* keep catalog indices current */
|
||||
CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, ridescs);
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.9 1997/08/12 20:15:10 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.10 1997/08/12 22:52:20 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -390,7 +390,7 @@ StoreCatalogInheritance(Oid relationId, List *supers)
|
||||
|
||||
tuple = heap_formtuple(desc,datum, nullarr);
|
||||
|
||||
(void) heap_insert(relation, tuple);
|
||||
heap_insert(relation, tuple);
|
||||
pfree(tuple);
|
||||
|
||||
seqNumber += 1;
|
||||
@@ -498,7 +498,7 @@ StoreCatalogInheritance(Oid relationId, List *supers)
|
||||
|
||||
tuple = heap_formtuple( desc, datum, nullarr);
|
||||
|
||||
(void) heap_insert(relation, tuple);
|
||||
heap_insert(relation, tuple);
|
||||
pfree(tuple);
|
||||
|
||||
seqNumber += 1;
|
||||
|
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.12 1997/08/03 02:35:01 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.13 1997/08/12 22:52:23 momjian Exp $
|
||||
*
|
||||
* DESCRIPTION
|
||||
* The "DefineFoo" routines take the parse tree and pick out the
|
||||
@@ -537,7 +537,7 @@ DefineType(char *typeName, List *parameters)
|
||||
* now have TypeCreate do all the real work.
|
||||
* ----------------
|
||||
*/
|
||||
(void) TypeCreate(typeName, /* type name */
|
||||
TypeCreate(typeName, /* type name */
|
||||
InvalidOid, /* relation oid (n/a here) */
|
||||
internalLength, /* internal size */
|
||||
externalLength, /* external size */
|
||||
@@ -559,7 +559,7 @@ DefineType(char *typeName, List *parameters)
|
||||
*/
|
||||
shadow_type = makeArrayTypeName(typeName);
|
||||
|
||||
(void) TypeCreate(shadow_type, /* type name */
|
||||
TypeCreate(shadow_type, /* type name */
|
||||
InvalidOid, /* relation oid (n/a here) */
|
||||
-1, /* internal size */
|
||||
-1, /* external size */
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.5 1997/07/29 16:19:26 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/purge.c,v 1.6 1997/08/12 22:52:25 momjian Exp $
|
||||
*
|
||||
* Note:
|
||||
* XXX There are many instances of int32 instead of ...Time. These
|
||||
@@ -149,7 +149,7 @@ RelationPurge(char *relationName,
|
||||
nulls, replace);
|
||||
|
||||
/* XXX How do you detect an insertion error?? */
|
||||
(void) heap_replace(relation, &newTuple->t_ctid, newTuple);
|
||||
heap_replace(relation, &newTuple->t_ctid, newTuple);
|
||||
|
||||
/* keep the system catalog indices current */
|
||||
CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, idescs);
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.5 1997/08/12 20:15:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.6 1997/08/12 22:52:27 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -170,7 +170,7 @@ renameatt(char *relname,
|
||||
oldTID = oldatttup->t_ctid;
|
||||
|
||||
/* insert "fixed" tuple */
|
||||
(void) heap_replace(attrdesc, &oldTID, oldatttup);
|
||||
heap_replace(attrdesc, &oldTID, oldatttup);
|
||||
|
||||
/* keep system catalog indices current */
|
||||
CatalogOpenIndices(Num_pg_attr_indices, Name_pg_attr_indices, idescs);
|
||||
@@ -246,7 +246,7 @@ renamerel(char oldrelname[], char newrelname[])
|
||||
oldTID = oldreltup->t_ctid;
|
||||
|
||||
/* insert fixed rel tuple */
|
||||
(void) heap_replace(relrdesc, &oldTID, oldreltup);
|
||||
heap_replace(relrdesc, &oldTID, oldreltup);
|
||||
|
||||
/* keep the system catalog indices current */
|
||||
CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, idescs);
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.37 1997/07/28 00:53:40 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.38 1997/08/12 22:52:29 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -146,7 +146,7 @@ vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
|
||||
strcpy (dest, col);
|
||||
va_cols = lappend (va_cols, dest);
|
||||
}
|
||||
(void) MemoryContextSwitchTo(old);
|
||||
MemoryContextSwitchTo(old);
|
||||
|
||||
/* initialize vacuum cleaner */
|
||||
vc_init();
|
||||
@@ -222,7 +222,7 @@ void
|
||||
vc_abort()
|
||||
{
|
||||
/* on abort, remove the vacuum cleaner lock file */
|
||||
(void) unlink("pg_vlock");
|
||||
unlink("pg_vlock");
|
||||
|
||||
VacuumRunning = false;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ vc_getrels(NameData *VacRelP)
|
||||
cur->vrl_next = (VRelList) palloc(sizeof(VRelListData));
|
||||
cur = cur->vrl_next;
|
||||
}
|
||||
(void) MemoryContextSwitchTo(old);
|
||||
MemoryContextSwitchTo(old);
|
||||
|
||||
cur->vrl_relid = pgctup->t_oid;
|
||||
cur->vrl_next = (VRelList) NULL;
|
||||
@@ -1991,7 +1991,7 @@ vc_free(VRelList vrl)
|
||||
pfree(p_vrl);
|
||||
}
|
||||
|
||||
(void) MemoryContextSwitchTo(old);
|
||||
MemoryContextSwitchTo(old);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user