[postgis-devel] [PostGIS] #1984: geography_btree.c: array subscript is above array bounds [-Warray-bounds]

PostGIS trac at osgeo.org
Fri Sep 7 04:13:59 PDT 2012


#1984: geography_btree.c: array subscript is above array bounds [-Warray-bounds]
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.2
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 With gcc 4.6.3:

 {{{
 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]
 }}}

 Worth checking

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1984>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list