Get rid of some minor compiler warnings.

This commit is contained in:
Tom Lane 1998-10-26 01:05:07 +00:00
parent 0bdf46a37f
commit 990fa43c23
6 changed files with 25 additions and 23 deletions

View file

@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
# #
# NOTES # NOTES
# Passes any -D options on to cpp prior to generating the list # Passes any -D options on to cpp prior to generating the list
@ -79,7 +79,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $ * $Id: Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
* *
* NOTES * NOTES
* ****************************** * ******************************
@ -193,7 +193,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.10 1998/10/14 16:06:14 thomas Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
* *
* NOTES * NOTES
* *
@ -220,7 +220,9 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
#else #else
# ifdef HAVE_LIMITS_H # ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
# ifndef MAXINT
# define MAXINT INT_MAX # define MAXINT INT_MAX
# endif
# else # else
# include <values.h> # include <values.h>
# endif # endif

View file

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.37 1998/09/01 04:32:33 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.38 1998/10/26 01:01:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -872,7 +872,7 @@ line_out(LINE *line)
/* line_construct_pm() /* line_construct_pm()
* point-slope * point-slope
*/ */
LINE * static LINE *
line_construct_pm(Point *pt, double m) line_construct_pm(Point *pt, double m)
{ {
LINE *result = palloc(sizeof(LINE)); LINE *result = palloc(sizeof(LINE));
@ -1294,7 +1294,7 @@ path_open(PATH *path)
} /* path_open() */ } /* path_open() */
PATH * static PATH *
path_copy(PATH *path) path_copy(PATH *path)
{ {
PATH *result; PATH *result;

View file

@ -1,7 +1,7 @@
/* /*
* PostgreSQL type definitions for MAC addresses. * PostgreSQL type definitions for MAC addresses.
* *
* $Id: mac.c,v 1.5 1998/10/08 02:08:45 momjian Exp $ * $Id: mac.c,v 1.6 1998/10/26 01:01:36 tgl Exp $
*/ */
#include <stdio.h> #include <stdio.h>
@ -234,40 +234,40 @@ macaddr_lt(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) < hibits(a2)) || return ((hibits(a1) < hibits(a2)) ||
((hibits(a1) == hibits(a2)) && lobits(a1) < lobits(a2))); ((hibits(a1) == hibits(a2)) && lobits(a1) < lobits(a2)));
}; }
bool bool
macaddr_le(macaddr *a1, macaddr *a2) macaddr_le(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) < hibits(a2)) || return ((hibits(a1) < hibits(a2)) ||
((hibits(a1) == hibits(a2)) && lobits(a1) <= lobits(a2))); ((hibits(a1) == hibits(a2)) && lobits(a1) <= lobits(a2)));
}; }
bool bool
macaddr_eq(macaddr *a1, macaddr *a2) macaddr_eq(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) == hibits(a2)) && (lobits(a1) == lobits(a2))); return ((hibits(a1) == hibits(a2)) && (lobits(a1) == lobits(a2)));
}; }
bool bool
macaddr_ge(macaddr *a1, macaddr *a2) macaddr_ge(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) > hibits(a2)) || return ((hibits(a1) > hibits(a2)) ||
((hibits(a1) == hibits(a2)) && lobits(a1) >= lobits(a2))); ((hibits(a1) == hibits(a2)) && lobits(a1) >= lobits(a2)));
}; }
bool bool
macaddr_gt(macaddr *a1, macaddr *a2) macaddr_gt(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) > hibits(a2)) || return ((hibits(a1) > hibits(a2)) ||
((hibits(a1) == hibits(a2)) && lobits(a1) > lobits(a2))); ((hibits(a1) == hibits(a2)) && lobits(a1) > lobits(a2)));
}; }
bool bool
macaddr_ne(macaddr *a1, macaddr *a2) macaddr_ne(macaddr *a1, macaddr *a2)
{ {
return ((hibits(a1) != hibits(a2)) || (lobits(a1) != lobits(a2))); return ((hibits(a1) != hibits(a2)) || (lobits(a1) != lobits(a2)));
}; }
/* /*
* Comparison function for sorting: * Comparison function for sorting:

View file

@ -3,7 +3,7 @@
* out of it's tuple * out of it's tuple
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.5 1998/10/06 22:14:16 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.6 1998/10/26 01:01:35 tgl Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
@ -1556,7 +1556,7 @@ get_tle_expr(QryHier *qh, int rt_index, TargetEntry *tle, bool varprefix)
* with the type cast out of a Const * with the type cast out of a Const
* ---------- * ----------
*/ */
char * static char *
get_const_expr(Const *constval) get_const_expr(Const *constval)
{ {
HeapTuple typetup; HeapTuple typetup;

View file

@ -21,7 +21,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.92 1998/10/12 02:05:42 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.93 1998/10/26 01:05:07 tgl Exp $
* *
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* *
@ -2527,7 +2527,7 @@ ParseACL(const char *acls, int *count)
* Called for sequences and tables * Called for sequences and tables
*/ */
void static void
dumpACL(FILE *fout, TableInfo tbinfo) dumpACL(FILE *fout, TableInfo tbinfo)
{ {
int k, int k,

View file

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.162 1998/10/08 00:10:47 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.163 1998/10/26 01:04:37 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -379,7 +379,7 @@ listAllDbs(PsqlSettings *pset)
* List The Database Tables returns 0 if all went well * List The Database Tables returns 0 if all went well
* *
*/ */
int static int
tableList(PsqlSettings *pset, bool deep_tablelist, char info_type, tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
bool system_tables) bool system_tables)
{ {
@ -535,7 +535,7 @@ tableList(PsqlSettings *pset, bool deep_tablelist, char info_type,
* List Tables Grant/Revoke Permissions returns 0 if all went well * List Tables Grant/Revoke Permissions returns 0 if all went well
* *
*/ */
int static int
rightsList(PsqlSettings *pset) rightsList(PsqlSettings *pset)
{ {
char listbuf[512]; char listbuf[512];
@ -661,7 +661,7 @@ static void emitNtimes (FILE *fout, const char *str, int N)
* *
* *
*/ */
int static int
tableDesc(PsqlSettings *pset, char *table, FILE *fout) tableDesc(PsqlSettings *pset, char *table, FILE *fout)
{ {
char descbuf[512]; char descbuf[512];
@ -877,7 +877,7 @@ tableDesc(PsqlSettings *pset, char *table, FILE *fout)
* *
* *
*/ */
int static int
objectDescription(PsqlSettings *pset, char *object) objectDescription(PsqlSettings *pset, char *object)
{ {
char descbuf[512]; char descbuf[512];