Hi,
I am trying to compile PostgreSQL 7.0.3 and I get a lot of compilation
warnings running gmake (see attachment). As anyone else seen this?
Should I ignore the warnings?
System: Sun SPARCserver 10
OS: Solaris 8
Paul.
$ gmake
gmake -C utils all
gmake[1]: Entering directory `/usr/local/postgresql-7.0.3/src/utils'
gcc -I../include -I../backend -Wall -Wmissing-prototypes -Wmissing-declarations -c -o version.o version.c
version.c: In function `ValidatePgVersion':
version.c:83: warning: subscript has type `char'
gmake[1]: Leaving directory `/usr/local/postgresql-7.0.3/src/utils'
gmake -C backend all
gmake[1]: Entering directory `/usr/local/postgresql-7.0.3/src/backend'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o variable.o
variable.c
variable.c: In function `get_token':
variable.c:140: warning: subscript has type `char'
variable.c:154: warning: subscript has type `char'
variable.c:162: warning: subscript has type `char'
variable.c:180: warning: subscript has type `char'
variable.c:190: warning: subscript has type `char'
variable.c:198: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -Wno-error -c -o scan.o
scan.c
scan.l: In function `yylex':
scan.l:450: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o outfuncs.o
outfuncs.c
outfuncs.c: In function `_outToken':
outfuncs.c:73: warning: subscript has type `char'
outfuncs.c:74: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o readfuncs.o
readfuncs.c
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o print.o print.c
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o read.o read.c
read.c: In function `nodeTokenType':
read.c:208: warning: subscript has type `char'
read.c:209: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o inet_aton.o
inet_aton.c
inet_aton.c: In function `inet_aton':
inet_aton.c:86: warning: subscript has type `char'
inet_aton.c:92: warning: subscript has type `char'
inet_aton.c:95: warning: subscript has type `char'
inet_aton.c:119: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -c -o postmaster.o
postmaster.c
postmaster.c: In function `split_opts':
postmaster.c:1842: warning: subscript has type `char'
postmaster.c:1847: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I.. -DPOSIX_MISTAKE -c -o
regexec.oregexec.c
In file included from regexec.c:93:
engine.c: In function `sbackref':
engine.c:623: warning: subscript has type `char'
engine.c:624: warning: subscript has type `char'
engine.c:634: warning: subscript has type `char'
engine.c:635: warning: subscript has type `char'
In file included from regexec.c:142:
engine.c: In function `lbackref':
engine.c:623: warning: subscript has type `char'
engine.c:624: warning: subscript has type `char'
engine.c:634: warning: subscript has type `char'
engine.c:635: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o acl.o
acl.c
acl.c: In function `getid':
acl.c:57: warning: subscript has type `char'
acl.c:66: warning: subscript has type `char'
acl.c:80: warning: subscript has type `char'
acl.c: In function `aclparse':
acl.c:149: warning: subscript has type `char'
acl.c: In function `aclitemin':
acl.c:246: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
arrayfuncs.oarrayfuncs.c
arrayfuncs.c: In function `array_in':
arrayfuncs.c:124: warning: subscript has type `char'
arrayfuncs.c:137: warning: subscript has type `char'
arrayfuncs.c:166: warning: subscript has type `char'
arrayfuncs.c:171: warning: subscript has type `char'
arrayfuncs.c: In function `_ArrayCount':
arrayfuncs.c:324: warning: subscript has type `char'
arrayfuncs.c: In function `_ReadArrayStr':
arrayfuncs.c:452: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o cash.o
cash.c
cash.c: In function `cash_in':
cash.c:100: warning: subscript has type `char'
cash.c:132: warning: subscript has type `char'
cash.c:145: warning: subscript has type `char'
cash.c:167: warning: subscript has type `char'
cash.c:178: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
datetime.odatetime.c
datetime.c: In function `ParseDateTime':
datetime.c:417: warning: subscript has type `char'
datetime.c:420: warning: subscript has type `char'
datetime.c:426: warning: subscript has type `char'
datetime.c:434: warning: subscript has type `char'
datetime.c:452: warning: subscript has type `char'
datetime.c:456: warning: subscript has type `char'
datetime.c:485: warning: subscript has type `char'
datetime.c:491: warning: subscript has type `char'
datetime.c:502: warning: subscript has type `char'
datetime.c:505: warning: subscript has type `char'
datetime.c:509: warning: subscript has type `char'
datetime.c:514: warning: subscript has type `char'
datetime.c:518: warning: subscript has type `char'
datetime.c:528: warning: subscript has type `char'
datetime.c: In function `DecodeDateTime':
datetime.c:646: warning: subscript has type `char'
datetime.c: In function `DecodeTimeOnly':
datetime.c:991: warning: subscript has type `char'
datetime.c: In function `DecodeDate':
datetime.c:1182: warning: subscript has type `char'
datetime.c:1186: warning: subscript has type `char'
datetime.c:1188: warning: subscript has type `char'
datetime.c:1191: warning: subscript has type `char'
datetime.c:1193: warning: subscript has type `char'
datetime.c:1213: warning: subscript has type `char'
datetime.c: In function `DecodePosixTimezone':
datetime.c:1576: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o float.o
float.c
float.c: In function `dpow':
float.c:1170: warning: implicit declaration of function `finite'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
geo_ops.ogeo_ops.c
geo_ops.c: In function `single_decode':
geo_ops.c:114: warning: subscript has type `char'
geo_ops.c:122: warning: subscript has type `char'
geo_ops.c: In function `pair_decode':
geo_ops.c:147: warning: subscript has type `char'
geo_ops.c:152: warning: subscript has type `char'
geo_ops.c:157: warning: subscript has type `char'
geo_ops.c:161: warning: subscript has type `char'
geo_ops.c:166: warning: subscript has type `char'
geo_ops.c:173: warning: subscript has type `char'
geo_ops.c: In function `path_decode':
geo_ops.c:198: warning: subscript has type `char'
geo_ops.c:207: warning: subscript has type `char'
geo_ops.c:214: warning: subscript has type `char'
geo_ops.c:250: warning: subscript has type `char'
geo_ops.c: In function `path_in':
geo_ops.c:1160: warning: subscript has type `char'
geo_ops.c: In function `circle_in':
geo_ops.c:3848: warning: subscript has type `char'
geo_ops.c:3854: warning: subscript has type `char'
geo_ops.c:3865: warning: subscript has type `char'
geo_ops.c:3878: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o int.o
int.c
int.c: In function `int2vectorin':
int.c:95: warning: subscript has type `char'
int.c:97: warning: subscript has type `char'
int.c:100: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o int8.o
int8.c
int8.c: In function `int8in':
int8.c:64: warning: subscript has type `char'
int8.c:70: warning: subscript has type `char'
int8.c:72: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
numeric.onumeric.c
numeric.c: In function `set_var_from_str':
numeric.c:2107: warning: subscript has type `char'
numeric.c:2136: warning: subscript has type `char'
numeric.c:2141: warning: subscript has type `char'
numeric.c:2184: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
numutils.onumutils.c
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o oid.o
oid.c
oid.c: In function `oidvectorin':
oid.c:46: warning: subscript has type `char'
oid.c:48: warning: subscript has type `char'
oid.c:51: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
varlena.ovarlena.c
varlena.c: In function `byteain':
varlena.c:60: warning: subscript has type `char'
varlena.c:61: warning: subscript has type `char'
varlena.c:62: warning: subscript has type `char'
varlena.c: In function `byteaout':
varlena.c:114: warning: subscript has type `char'
varlena.c:127: warning: subscript has type `char'
gcc -I../../../include -I../../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -c -o
miscinit.omiscinit.c
miscinit.c: In function `SetPidFile':
miscinit.c:503: warning: int format, pid_t arg (arg 3)
miscinit.c:510: warning: int format, pid_t arg (arg 3)
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -fPIC -c -o
fe-connect.ofe-connect.c
fe-connect.c: In function `conninfo_parse':
fe-connect.c:2120: warning: subscript has type `char'
fe-connect.c:2132: warning: subscript has type `char'
fe-connect.c:2137: warning: subscript has type `char'
fe-connect.c:2161: warning: subscript has type `char'
fe-connect.c:2174: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -fPIC -c -o
fe-exec.ofe-exec.c
fe-exec.c: In function `PQfnumber':
fe-exec.c:1959: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -fPIC -c -o
inet_aton.oinet_aton.c
inet_aton.c: In function `inet_aton':
inet_aton.c:86: warning: subscript has type `char'
inet_aton.c:92: warning: subscript has type `char'
inet_aton.c:95: warning: subscript has type `char'
inet_aton.c:119: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../../interfaces/libpq -c
-opg_dump.o pg_dump.c
pg_dump.c: In function `main':
pg_dump.c:702: warning: subscript has type `char'
gcc -I../../include -I../../backend -Wall -Wmissing-prototypes -Wmissing-declarations -I../../interfaces/libpq -c
-ocommon.o common.c
common.c: In function `parseNumericArray':
common.c:193: warning: subscript has type `char'
common.c: In function `fmtId':
common.c:520: warning: subscript has type `char'
common.c:525: warning: subscript has type `char'
common.c:525: warning: subscript has type `char'