From 341b328b180e65d1fa5c8f2235cf101c8a12824f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 17 Mar 2000 02:36:41 +0000 Subject: Fix a bunch of minor portability problems and maybe-bugs revealed by running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful... --- src/backend/parser/parse_relation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_relation.c') diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index 4a943af6739..085cd5366bb 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.37 2000/03/14 23:06:33 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.38 2000/03/17 02:36:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -54,7 +54,7 @@ static struct }, }; -#define SPECIALS (sizeof(special_attr)/sizeof(*special_attr)) +#define SPECIALS ((int) (sizeof(special_attr)/sizeof(*special_attr))) static char *attnum_type[SPECIALS] = { "tid", -- cgit v1.2.3