Quiet compiler warnings.

This commit is contained in:
Bryan Henderson 1996-11-10 02:27:15 +00:00
parent 2e21b7e4bc
commit bf5cbbf789
6 changed files with 47 additions and 43 deletions

View File

@ -6,7 +6,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.7 1996/11/08 20:45:42 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.8 1996/11/10 02:23:15 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -49,8 +49,8 @@ List *parsetree = NIL;
#ifdef SETS_FIXED #ifdef SETS_FIXED
static void fixupsets(); static void fixupsets();
#endif
static void define_sets(); static void define_sets();
#endif
/* /*
* parser-- returns a list of parse trees * parser-- returns a list of parse trees
* *
@ -120,6 +120,7 @@ fixupsets(Query *parse)
} }
#endif #endif
#ifdef SETS_FIXED
/* Recursively find all of the Consts in the parsetree. Some of /* Recursively find all of the Consts in the parsetree. Some of
* these may represent a set. The value of the Const will be the * these may represent a set. The value of the Const will be the
* query (a string) which defines the set. Call SetDefine to define * query (a string) which defines the set. Call SetDefine to define
@ -128,7 +129,6 @@ fixupsets(Query *parse)
static void static void
define_sets(Node *clause) define_sets(Node *clause)
{ {
#ifdef SETS_FIXED
Oid setoid; Oid setoid;
Type t = type("oid"); Type t = type("oid");
Oid typeoid = typeid(t); Oid typeoid = typeid(t);

View File

@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.21 1996/11/08 05:57:41 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.22 1996/11/10 02:24:12 bryanh Exp $
* *
* NOTES * NOTES
* *
@ -1170,8 +1170,8 @@ dumpstatus(SIGNAL_ARGS)
fprintf(stderr, "%s: dumpstatus:\n", progname); fprintf(stderr, "%s: dumpstatus:\n", progname);
fprintf(stderr, "\tsock %d: nBytes=%d, laddr=0x%lx, raddr=0x%lx\n", fprintf(stderr, "\tsock %d: nBytes=%d, laddr=0x%lx, raddr=0x%lx\n",
port->sock, port->nBytes, port->sock, port->nBytes,
port->laddr.sin_addr.s_addr, (long int) port->laddr.sin_addr.s_addr,
port->raddr.sin_addr.s_addr); (long int) port->raddr.sin_addr.s_addr);
curr = DLGetSucc(curr); curr = DLGetSucc(curr);
} }
} }

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.15 1996/11/08 05:59:31 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.16 1996/11/10 02:25:15 bryanh Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
@ -1256,7 +1256,7 @@ PostgresMain(int argc, char *argv[])
*/ */
if (IsUnderPostmaster == false) { if (IsUnderPostmaster == false) {
puts("\nPOSTGRES backend interactive interface"); puts("\nPOSTGRES backend interactive interface");
puts("$Revision: 1.15 $ $Date: 1996/11/08 05:59:31 $"); puts("$Revision: 1.16 $ $Date: 1996/11/10 02:25:15 $");
} }
/* ---------------- /* ----------------
@ -1510,15 +1510,18 @@ ShowUsage()
fprintf(StatFp, "! system usage stats:\n"); fprintf(StatFp, "! system usage stats:\n");
fprintf(StatFp, fprintf(StatFp,
"!\t%ld.%06ld elapsed %ld.%06ld user %ld.%06ld system sec\n", "!\t%ld.%06ld elapsed %ld.%06ld user %ld.%06ld system sec\n",
elapse_t.tv_sec - Save_t.tv_sec, (long int) elapse_t.tv_sec - Save_t.tv_sec,
elapse_t.tv_usec - Save_t.tv_usec, (long int) elapse_t.tv_usec - Save_t.tv_usec,
r.ru_utime.tv_sec - Save_r.ru_utime.tv_sec, (long int) r.ru_utime.tv_sec - Save_r.ru_utime.tv_sec,
r.ru_utime.tv_usec - Save_r.ru_utime.tv_usec, (long int) r.ru_utime.tv_usec - Save_r.ru_utime.tv_usec,
r.ru_stime.tv_sec - Save_r.ru_stime.tv_sec, (long int) r.ru_stime.tv_sec - Save_r.ru_stime.tv_sec,
r.ru_stime.tv_usec - Save_r.ru_stime.tv_usec); (long int) r.ru_stime.tv_usec - Save_r.ru_stime.tv_usec);
fprintf(StatFp, fprintf(StatFp,
"!\t[%ld.%06ld user %ld.%06ld sys total]\n", "!\t[%ld.%06ld user %ld.%06ld sys total]\n",
user.tv_sec, user.tv_usec, sys.tv_sec, sys.tv_usec); (long int) user.tv_sec,
(long int) user.tv_usec,
(long int) sys.tv_sec,
(long int) sys.tv_usec);
#ifndef NEED_RUSAGE #ifndef NEED_RUSAGE
fprintf(StatFp, fprintf(StatFp,
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n", "!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",

View File

@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.6 1996/11/08 05:59:35 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.7 1996/11/10 02:25:16 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -42,6 +42,7 @@
#include "rewrite/rewriteDefine.h" #include "rewrite/rewriteDefine.h"
#include "tcop/tcopdebug.h" #include "tcop/tcopdebug.h"
#include "tcop/dest.h" #include "tcop/dest.h"
#include "fmgr.h" /* For load_file() */
#ifndef NO_SECURITY #ifndef NO_SECURITY
#include "miscadmin.h" #include "miscadmin.h"

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.1.1.1 1996/07/09 06:22:07 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.2 1996/11/10 02:26:15 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -184,7 +184,7 @@ handle_load(char *filename, char *funcname)
file_scanner->handle = pg_dlopen(filename); file_scanner->handle = pg_dlopen(filename);
if (file_scanner->handle == (void *)NULL) { if (file_scanner->handle == (void *)NULL) {
load_error = pg_dlerror(); load_error = (char *) pg_dlerror();
if (file_scanner == file_list) { if (file_scanner == file_list) {
file_list = (DynamicFileList *) NULL; file_list = (DynamicFileList *) NULL;
} else { } else {

View File

@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: defrem.h,v 1.3 1996/11/06 07:50:12 scrappy Exp $ * $Id: defrem.h,v 1.4 1996/11/10 02:27:15 bryanh Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -33,7 +33,7 @@ extern void RemoveIndex(char *name);
/* /*
* prototypes in define.c * prototypes in define.c
*/ */
extern void DefineFunction(ProcedureStmt *nameargsexe, CommandDest dest); extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
extern void DefineOperator(char *name, List *parameters); extern void DefineOperator(char *name, List *parameters);
extern void DefineAggregate(char *name, List *parameters); extern void DefineAggregate(char *name, List *parameters);
extern void DefineType(char *name, List *parameters); extern void DefineType(char *name, List *parameters);