[postgis-devel] Build warnings on trunk: "array subscript is above array bounds"

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Fri May 24 15:12:49 PDT 2013


Hi all,

I get the following rather worrying warnings when building SVN trunk:

(cut)

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing 
-fwrapv -g -fpic -I/home/pg90/rel/include -I/home/pg90/rel/include 
-I/usr/include/libxml2 -I../liblwgeom -I../libpgcommon -I. -I. 
-I/home/pg90/rel-9.0.7/include/postgresql/server 
-I/home/pg90/rel-9.0.7/include/postgresql/internal -D_GNU_SOURCE   -c -o 
geography_btree.o geography_btree.c
geography_btree.c: In function ‘geography_lt’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c: In function ‘geography_le’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c: In function ‘geography_gt’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c: In function ‘geography_ge’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c: In function ‘geography_eq’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c: In function ‘geography_cmp’:
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:38:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:39:33: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:9: warning: array subscript is above array bounds 
[-Warray-bounds]
geography_btree.c:40:33: warning: array subscript is above array bounds 
[-Warray-bounds]

Paul, do you have any idea as to why these are being generated?


ATB,

Mark.



More information about the postgis-devel mailing list