mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Compile and warning cleanup
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.2 1996/11/06 10:32:04 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.3 1996/11/08 06:00:48 momjian Exp $
|
||||
*
|
||||
* NOTE
|
||||
* XXX This is a preliminary implementation which lacks fail-fast
|
||||
@@ -368,7 +368,7 @@ AllocPointerGetNext(AllocPointer pointer)
|
||||
void
|
||||
AllocPointerDump(AllocPointer pointer)
|
||||
{
|
||||
printf("\t%-10d@ %0#x\n", ((long*)pointer)[-1], pointer); /* XXX */
|
||||
printf("\t%-10ld@ %0#lx\n", ((long*)pointer)[-1], (long)pointer); /* XXX */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.1.1.1 1996/07/09 06:22:09 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.2 1996/11/08 06:00:54 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -77,8 +77,9 @@ static Pointer GlobalMemoryRealloc(GlobalMemory this, Pointer pointer,
|
||||
Size size);
|
||||
static char *GlobalMemoryGetName(GlobalMemory this);
|
||||
static void GlobalMemoryDump(GlobalMemory this);
|
||||
#ifdef NOT_USED
|
||||
static void DumpGlobalMemories(void);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Global Memory Methods
|
||||
@@ -493,6 +494,7 @@ GlobalMemoryDump(GlobalMemory this)
|
||||
* Exceptions:
|
||||
* ???
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
static void
|
||||
DumpGlobalMemories()
|
||||
{
|
||||
@@ -507,4 +509,4 @@ DumpGlobalMemories()
|
||||
&context->elemData);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.2 1996/11/03 06:54:25 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.3 1996/11/08 06:00:57 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -465,6 +465,7 @@ AtEOXact_portals()
|
||||
* PortalDump
|
||||
* ----------------
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
static void
|
||||
PortalDump(Portal *thisP)
|
||||
{
|
||||
@@ -473,11 +474,13 @@ PortalDump(Portal *thisP)
|
||||
PortalVariableMemoryDump(PortalGetVariableMemory(*thisP));
|
||||
PortalHeapMemoryDump(PortalGetHeapMemory(*thisP));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ----------------
|
||||
* DumpPortals
|
||||
* ----------------
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
static void
|
||||
DumpPortals()
|
||||
{
|
||||
@@ -485,7 +488,8 @@ DumpPortals()
|
||||
|
||||
HashTableWalk(PortalHashTable, PortalDump, 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
* public portal interface functions
|
||||
* ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user