1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-04 20:11:56 +03:00

Compile and warning cleanup

This commit is contained in:
Bruce Momjian
1996-11-08 06:02:30 +00:00
parent d79bb2fd0e
commit 4b2b8592a0
85 changed files with 342 additions and 228 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.2 1996/08/19 13:32:14 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.3 1996/11/08 05:56:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -39,7 +39,7 @@ List *
listCopy(List *list)
{
List *newlist=NIL;
List *l, *nl;
List *l, *nl=NIL;
foreach(l, list) {
if (newlist==NIL) {
@@ -1653,7 +1653,7 @@ copyObject(void *from)
case T_List:
{
List *list=from, *l;
List *newlist = NIL, *nl;
List *newlist = NIL, *nl=NIL;
foreach(l, list) {
if (newlist==NIL) {
newlist = nl = lcons(copyObject(lfirst(l)),NIL);

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.2 1996/08/26 06:30:51 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.3 1996/11/08 05:56:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -570,7 +570,7 @@ _equalValue(Value *a, Value *b)
bool
equal(void *a, void *b)
{
bool retval;
bool retval=false;
if (a == b)
return(true);

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.1.1.1 1996/07/09 06:21:33 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.2 1996/11/08 05:56:43 momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -548,7 +548,7 @@ static void
_outExpr(StringInfo str, Expr *node)
{
char buf[500];
char *opstr;
char *opstr = NULL;
sprintf(buf, "EXPR");
appendStringInfo(str,buf);

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.1.1.1 1996/07/09 06:21:33 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.2 1996/11/08 05:56:48 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -64,7 +64,7 @@ stringToNode(char *str)
static NodeTag
nodeTokenType(char *token, int length)
{
NodeTag retval;
NodeTag retval = 0;
/*
* Check if the token is a number (decimal or integer,
@@ -168,7 +168,7 @@ nodeRead(bool read_car_only)
{
char *token;
NodeTag type;
Node *this_value, *return_value;
Node *this_value = NULL, *return_value = NULL;
int tok_len;
char tmp;
bool make_dotted_pair_cell = false;

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2 1996/07/31 02:18:48 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.3 1996/11/08 05:56:49 momjian Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -1047,7 +1047,7 @@ _readEState()
token = lsptok(NULL, &length); /* get @ */
token = lsptok(NULL, &length); /* now read it */
sscanf(token, "%x", &local_node->es_result_relation_info);
sscanf(token, "%x",(unsigned int *)&local_node->es_result_relation_info);
return(local_node);
}
@@ -1117,13 +1117,13 @@ _readRel()
token = lsptok(NULL, &length); /* get @ */
token = lsptok(NULL, &length); /* now read it */
sscanf(token, "%x", &local_node->unorderedpath);
sscanf(token, "%x", (unsigned int *)&local_node->unorderedpath);
token = lsptok(NULL, &length); /* get :cheapestpath */
token = lsptok(NULL, &length); /* get @ */
token = lsptok(NULL, &length); /* now read it */
sscanf(token, "%x", &local_node->cheapestpath);
sscanf(token, "%x", (unsigned int *)&local_node->cheapestpath);
token = lsptok(NULL, &length); /* get :clauseinfo */
@@ -1792,7 +1792,7 @@ parsePlanString()
{
char *token;
int length;
void *return_value;
void *return_value = NULL;
token = lsptok(NULL, &length);